diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2019-06-29 10:10:11 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-30 15:01:05 -0400 |
commit | 1d78bae19d5c8261c6c707c8f6320883dd48f85f (patch) | |
tree | 0fccee78fb866eb0418cfbd954d7d026a1ae2f46 | |
parent | ded441ffd511e91a469eb8c20e632fcddacbd6f0 (diff) |
wlr_pointer_gestures: Register event serials
-rw-r--r-- | types/wlr_pointer_gestures_v1.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/types/wlr_pointer_gestures_v1.c b/types/wlr_pointer_gestures_v1.c index 33b9db0f..cbe951eb 100644 --- a/types/wlr_pointer_gestures_v1.c +++ b/types/wlr_pointer_gestures_v1.c @@ -53,8 +53,8 @@ void wlr_pointer_gestures_v1_send_swipe_begin( } struct wl_client *focus_client = wl_resource_get_client(focus->resource); - uint32_t serial = wl_display_next_serial( - wl_client_get_display(focus_client)); + uint32_t serial = wlr_seat_client_next_serial( + seat->pointer_state.focused_client); struct wl_resource *gesture; wl_resource_for_each(gesture, &gestures->swipes) { @@ -104,8 +104,8 @@ void wlr_pointer_gestures_v1_send_swipe_end( } struct wl_client *focus_client = wl_resource_get_client(focus->resource); - uint32_t serial = wl_display_next_serial( - wl_client_get_display(focus_client)); + uint32_t serial = wlr_seat_client_next_serial( + seat->pointer_state.focused_client); struct wl_resource *gesture; wl_resource_for_each(gesture, &gestures->swipes) { @@ -165,8 +165,8 @@ void wlr_pointer_gestures_v1_send_pinch_begin( } struct wl_client *focus_client = wl_resource_get_client(focus->resource); - uint32_t serial = wl_display_next_serial( - wl_client_get_display(focus_client)); + uint32_t serial = wlr_seat_client_next_serial( + seat->pointer_state.focused_client); struct wl_resource *gesture; wl_resource_for_each(gesture, &gestures->pinches) { @@ -220,8 +220,8 @@ void wlr_pointer_gestures_v1_send_pinch_end( } struct wl_client *focus_client = wl_resource_get_client(focus->resource); - uint32_t serial = wl_display_next_serial( - wl_client_get_display(focus_client)); + uint32_t serial = wlr_seat_client_next_serial( + seat->pointer_state.focused_client); struct wl_resource *gesture; wl_resource_for_each(gesture, &gestures->pinches) { |