aboutsummaryrefslogtreecommitdiff
path: root/rootston/cursor.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-30 09:19:38 -0400
committerGitHub <noreply@github.com>2017-10-30 09:19:38 -0400
commit2e7cfd21e4c884910a703fab44009ba18c20f002 (patch)
treead09fe29a097b39cfc9d1e33706b4555239b2f73 /rootston/cursor.c
parent57efc3417f2131d643f8677093ec9b3e8301016e (diff)
parent74bca7251b207aefd6103734bf068db10b0b43a5 (diff)
Merge pull request #359 from acrisci/refactor/seat-handle-to-client
Rename wlr_seat_handle to wlr_seat_client
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r--rootston/cursor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c
index 917e876c..96844a1d 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->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) {