mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
Merge pull request #1515 from emersion/shell-grab-frame
Add missing frame events to shell pointer grabs
This commit is contained in:
commit
a37dfb380b
3 changed files with 15 additions and 0 deletions
|
@ -98,12 +98,17 @@ static void shell_pointer_grab_axis(struct wlr_seat_pointer_grab *grab,
|
||||||
value_discrete, source);
|
value_discrete, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void shell_pointer_grab_frame(struct wlr_seat_pointer_grab *grab) {
|
||||||
|
wlr_seat_pointer_send_frame(grab->seat);
|
||||||
|
}
|
||||||
|
|
||||||
static const struct wlr_pointer_grab_interface shell_pointer_grab_impl = {
|
static const struct wlr_pointer_grab_interface shell_pointer_grab_impl = {
|
||||||
.enter = shell_pointer_grab_enter,
|
.enter = shell_pointer_grab_enter,
|
||||||
.motion = shell_pointer_grab_motion,
|
.motion = shell_pointer_grab_motion,
|
||||||
.button = shell_pointer_grab_button,
|
.button = shell_pointer_grab_button,
|
||||||
.cancel = shell_pointer_grab_cancel,
|
.cancel = shell_pointer_grab_cancel,
|
||||||
.axis = shell_pointer_grab_axis,
|
.axis = shell_pointer_grab_axis,
|
||||||
|
.frame = shell_pointer_grab_frame,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct wl_shell_surface_interface shell_surface_impl;
|
static const struct wl_shell_surface_interface shell_surface_impl;
|
||||||
|
|
|
@ -50,6 +50,10 @@ static void xdg_pointer_grab_axis(struct wlr_seat_pointer_grab *grab,
|
||||||
value_discrete, source);
|
value_discrete, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void xdg_pointer_grab_frame(struct wlr_seat_pointer_grab *grab) {
|
||||||
|
wlr_seat_pointer_send_frame(grab->seat);
|
||||||
|
}
|
||||||
|
|
||||||
static void xdg_pointer_grab_cancel(struct wlr_seat_pointer_grab *grab) {
|
static void xdg_pointer_grab_cancel(struct wlr_seat_pointer_grab *grab) {
|
||||||
xdg_pointer_grab_end(grab);
|
xdg_pointer_grab_end(grab);
|
||||||
}
|
}
|
||||||
|
@ -60,6 +64,7 @@ static const struct wlr_pointer_grab_interface xdg_pointer_grab_impl = {
|
||||||
.button = xdg_pointer_grab_button,
|
.button = xdg_pointer_grab_button,
|
||||||
.cancel = xdg_pointer_grab_cancel,
|
.cancel = xdg_pointer_grab_cancel,
|
||||||
.axis = xdg_pointer_grab_axis,
|
.axis = xdg_pointer_grab_axis,
|
||||||
|
.frame = xdg_pointer_grab_frame,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void xdg_keyboard_grab_enter(struct wlr_seat_keyboard_grab *grab,
|
static void xdg_keyboard_grab_enter(struct wlr_seat_keyboard_grab *grab,
|
||||||
|
|
|
@ -60,6 +60,10 @@ static void xdg_pointer_grab_axis(struct wlr_seat_pointer_grab *grab,
|
||||||
value_discrete, source);
|
value_discrete, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void xdg_pointer_grab_frame(struct wlr_seat_pointer_grab *grab) {
|
||||||
|
wlr_seat_pointer_send_frame(grab->seat);
|
||||||
|
}
|
||||||
|
|
||||||
static void xdg_pointer_grab_cancel(struct wlr_seat_pointer_grab *grab) {
|
static void xdg_pointer_grab_cancel(struct wlr_seat_pointer_grab *grab) {
|
||||||
xdg_pointer_grab_end(grab);
|
xdg_pointer_grab_end(grab);
|
||||||
}
|
}
|
||||||
|
@ -70,6 +74,7 @@ static const struct wlr_pointer_grab_interface xdg_pointer_grab_impl = {
|
||||||
.button = xdg_pointer_grab_button,
|
.button = xdg_pointer_grab_button,
|
||||||
.cancel = xdg_pointer_grab_cancel,
|
.cancel = xdg_pointer_grab_cancel,
|
||||||
.axis = xdg_pointer_grab_axis,
|
.axis = xdg_pointer_grab_axis,
|
||||||
|
.frame = xdg_pointer_grab_frame,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void xdg_keyboard_grab_enter(struct wlr_seat_keyboard_grab *grab,
|
static void xdg_keyboard_grab_enter(struct wlr_seat_keyboard_grab *grab,
|
||||||
|
|
Loading…
Reference in a new issue