mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
wlr_pointer_gestures: Register event serials
This commit is contained in:
parent
ded441ffd5
commit
1d78bae19d
1 changed files with 8 additions and 8 deletions
|
@ -53,8 +53,8 @@ void wlr_pointer_gestures_v1_send_swipe_begin(
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wl_client *focus_client = wl_resource_get_client(focus->resource);
|
struct wl_client *focus_client = wl_resource_get_client(focus->resource);
|
||||||
uint32_t serial = wl_display_next_serial(
|
uint32_t serial = wlr_seat_client_next_serial(
|
||||||
wl_client_get_display(focus_client));
|
seat->pointer_state.focused_client);
|
||||||
|
|
||||||
struct wl_resource *gesture;
|
struct wl_resource *gesture;
|
||||||
wl_resource_for_each(gesture, &gestures->swipes) {
|
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);
|
struct wl_client *focus_client = wl_resource_get_client(focus->resource);
|
||||||
uint32_t serial = wl_display_next_serial(
|
uint32_t serial = wlr_seat_client_next_serial(
|
||||||
wl_client_get_display(focus_client));
|
seat->pointer_state.focused_client);
|
||||||
|
|
||||||
struct wl_resource *gesture;
|
struct wl_resource *gesture;
|
||||||
wl_resource_for_each(gesture, &gestures->swipes) {
|
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);
|
struct wl_client *focus_client = wl_resource_get_client(focus->resource);
|
||||||
uint32_t serial = wl_display_next_serial(
|
uint32_t serial = wlr_seat_client_next_serial(
|
||||||
wl_client_get_display(focus_client));
|
seat->pointer_state.focused_client);
|
||||||
|
|
||||||
struct wl_resource *gesture;
|
struct wl_resource *gesture;
|
||||||
wl_resource_for_each(gesture, &gestures->pinches) {
|
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);
|
struct wl_client *focus_client = wl_resource_get_client(focus->resource);
|
||||||
uint32_t serial = wl_display_next_serial(
|
uint32_t serial = wlr_seat_client_next_serial(
|
||||||
wl_client_get_display(focus_client));
|
seat->pointer_state.focused_client);
|
||||||
|
|
||||||
struct wl_resource *gesture;
|
struct wl_resource *gesture;
|
||||||
wl_resource_for_each(gesture, &gestures->pinches) {
|
wl_resource_for_each(gesture, &gestures->pinches) {
|
||||||
|
|
Loading…
Reference in a new issue