diff options
| author | emersion <contact@emersion.fr> | 2017-11-11 23:53:45 +0100 | 
|---|---|---|
| committer | emersion <contact@emersion.fr> | 2017-11-11 23:53:45 +0100 | 
| commit | 2dccb11741abd99fd71d4ccaba1ad42362d8f204 (patch) | |
| tree | 83fd7ea16b0ec14c5ee0544e72a9b28d57c14d08 /rootston/output.c | |
| parent | aaf069188319f42bc214f4317c37d533aea64518 (diff) | |
| download | wlroots-2dccb11741abd99fd71d4ccaba1ad42362d8f204.tar.xz | |
rootston: keep one xcursor_theme per seat
Diffstat (limited to 'rootston/output.c')
| -rw-r--r-- | rootston/output.c | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/rootston/output.c b/rootston/output.c index 943e14c0..b35e56cd 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -241,13 +241,14 @@ void output_add_notify(struct wl_listener *listener, void *data) {  		wlr_output_layout_add_auto(desktop->layout, wlr_output);  	} -	if (roots_xcursor_theme_load(desktop->xcursor_theme, wlr_output->scale)) { -		wlr_log(L_ERROR, "Cannot load xcursor theme with scale %d", -			wlr_output->scale); -	} -  	struct roots_seat *seat;  	wl_list_for_each(seat, &input->seats, link) { +		if (roots_xcursor_theme_load(seat->cursor->xcursor_theme, +				wlr_output->scale)) { +			wlr_log(L_ERROR, "Cannot load xcursor theme for output '%s' " +				"with scale %d", wlr_output->name, wlr_output->scale); +		} +  		roots_seat_configure_cursor(seat);  		roots_seat_configure_xcursor(seat);  	}  | 
