diff options
| author | Tony Crisci <tony@dubstepdish.com> | 2017-10-30 08:37:54 -0400 | 
|---|---|---|
| committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-30 08:37:54 -0400 | 
| commit | fddef4d58e7d84f6fcfe0be02048ddf52ee01006 (patch) | |
| tree | 9f6916ab6801e48199b50c16af93a05fb671c3f3 /rootston | |
| parent | 57efc3417f2131d643f8677093ec9b3e8301016e (diff) | |
| download | wlroots-fddef4d58e7d84f6fcfe0be02048ddf52ee01006.tar.xz | |
rename seat handle to seat client
Diffstat (limited to 'rootston')
| -rw-r--r-- | rootston/cursor.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/rootston/cursor.c b/rootston/cursor.c index 917e876c..e8b8e89b 100644 --- a/rootston/cursor.c +++ b/rootston/cursor.c @@ -475,12 +475,12 @@ static void handle_request_set_cursor(struct wl_listener *listener,  	struct wlr_seat_pointer_request_set_cursor_event *event = data;  	struct wlr_surface *focused_surface = -		event->seat_handle->wlr_seat->pointer_state.focused_surface; +		event->seat_client->wlr_seat->pointer_state.focused_surface;  	bool ok = focused_surface != NULL && focused_surface->resource != NULL;  	if (ok) {  		struct wl_client *focused_client =  			wl_resource_get_client(focused_surface->resource); -		ok = event->client == focused_client; +		ok = event->seat_client->client == focused_client;  	}  	if (!ok || input->mode != ROOTS_CURSOR_PASSTHROUGH) {  		wlr_log(L_DEBUG, "Denying request to set cursor from unfocused client"); @@ -489,7 +489,7 @@ static void handle_request_set_cursor(struct wl_listener *listener,  	wlr_log(L_DEBUG, "Setting client cursor");  	cursor_set_surface(input, event->surface, event->hotspot_x, event->hotspot_y); -	input->cursor_client = event->client; +	input->cursor_client = event->seat_client->client;  }  void cursor_initialize(struct roots_input *input) { | 
