diff options
author | Ferdinand Bachmann <theferdi265@gmail.com> | 2022-04-16 20:53:52 +0200 |
---|---|---|
committer | Ferdinand Bachmann <theferdi265@gmail.com> | 2022-04-16 20:53:52 +0200 |
commit | 2d4e8135308d225ece8ca4badcef89929b5b228e (patch) | |
tree | ea3a6f2c65f308c696cdeb0ba3ef0093df1e87e4 | |
parent | eedb9df531ae73061c0f72ef2944df6f0068f6cd (diff) |
types/wlr_pointer_gestures_v1.c: get client from seat client instead of resource
-rw-r--r-- | types/wlr_pointer_gestures_v1.c | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/types/wlr_pointer_gestures_v1.c b/types/wlr_pointer_gestures_v1.c index 1601b792..b3f874c9 100644 --- a/types/wlr_pointer_gestures_v1.c +++ b/types/wlr_pointer_gestures_v1.c @@ -58,9 +58,8 @@ void wlr_pointer_gestures_v1_send_swipe_begin( return; } - struct wl_client *focus_client = wl_resource_get_client(focus->resource); - uint32_t serial = wlr_seat_client_next_serial( - seat->pointer_state.focused_client); + struct wl_client *focus_client = focus_seat_client->client; + uint32_t serial = wlr_seat_client_next_serial(focus_seat_client); struct wl_resource *gesture; wl_resource_for_each(gesture, &gestures->swipes) { @@ -87,7 +86,7 @@ void wlr_pointer_gestures_v1_send_swipe_update( return; } - struct wl_client *focus_client = wl_resource_get_client(focus->resource); + struct wl_client *focus_client = focus_seat_client->client; struct wl_resource *gesture; wl_resource_for_each(gesture, &gestures->swipes) { @@ -113,9 +112,8 @@ void wlr_pointer_gestures_v1_send_swipe_end( return; } - struct wl_client *focus_client = wl_resource_get_client(focus->resource); - uint32_t serial = wlr_seat_client_next_serial( - seat->pointer_state.focused_client); + struct wl_client *focus_client = focus_seat_client->client; + uint32_t serial = wlr_seat_client_next_serial(focus_seat_client); struct wl_resource *gesture; wl_resource_for_each(gesture, &gestures->swipes) { @@ -176,9 +174,8 @@ void wlr_pointer_gestures_v1_send_pinch_begin( return; } - struct wl_client *focus_client = wl_resource_get_client(focus->resource); - uint32_t serial = wlr_seat_client_next_serial( - seat->pointer_state.focused_client); + struct wl_client *focus_client = focus_seat_client->client; + uint32_t serial = wlr_seat_client_next_serial(focus_seat_client); struct wl_resource *gesture; wl_resource_for_each(gesture, &gestures->pinches) { @@ -207,7 +204,7 @@ void wlr_pointer_gestures_v1_send_pinch_update( return; } - struct wl_client *focus_client = wl_resource_get_client(focus->resource); + struct wl_client *focus_client = focus_seat_client->client; struct wl_resource *gesture; wl_resource_for_each(gesture, &gestures->pinches) { @@ -235,9 +232,8 @@ void wlr_pointer_gestures_v1_send_pinch_end( return; } - struct wl_client *focus_client = wl_resource_get_client(focus->resource); - uint32_t serial = wlr_seat_client_next_serial( - seat->pointer_state.focused_client); + struct wl_client *focus_client = focus_seat_client->client; + uint32_t serial = wlr_seat_client_next_serial(focus_seat_client); struct wl_resource *gesture; wl_resource_for_each(gesture, &gestures->pinches) { @@ -303,9 +299,8 @@ void wlr_pointer_gestures_v1_send_hold_begin( return; } - struct wl_client *focus_client = wl_resource_get_client(focus->resource); - uint32_t serial = wlr_seat_client_next_serial( - seat->pointer_state.focused_client); + struct wl_client *focus_client = focus_seat_client->client; + uint32_t serial = wlr_seat_client_next_serial(focus_seat_client); struct wl_resource *gesture; wl_resource_for_each(gesture, &gestures->holds) { @@ -331,9 +326,8 @@ void wlr_pointer_gestures_v1_send_hold_end( return; } - struct wl_client *focus_client = wl_resource_get_client(focus->resource); - uint32_t serial = wlr_seat_client_next_serial( - seat->pointer_state.focused_client); + struct wl_client *focus_client = focus_seat_client->client; + uint32_t serial = wlr_seat_client_next_serial(focus_seat_client); struct wl_resource *gesture; wl_resource_for_each(gesture, &gestures->holds) { |