Support axis source, axis discrete, frame and axis stop events
[jonas: only send focus wl_pointer.frame if resource supports it] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com> Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
committed by
Jonas Ådahl
parent
89b6a4931e
commit
87743e9303
@@ -391,6 +391,16 @@ exposay_axis(struct weston_pointer_grab *grab,
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
exposay_axis_source(struct weston_pointer_grab *grab, uint32_t source)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
exposay_frame(struct weston_pointer_grab *grab)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
exposay_pointer_grab_cancel(struct weston_pointer_grab *grab)
|
||||
{
|
||||
@@ -405,6 +415,8 @@ static const struct weston_pointer_grab_interface exposay_ptr_grab = {
|
||||
exposay_motion,
|
||||
exposay_button,
|
||||
exposay_axis,
|
||||
exposay_axis_source,
|
||||
exposay_frame,
|
||||
exposay_pointer_grab_cancel,
|
||||
};
|
||||
|
||||
|
||||
@@ -1602,6 +1602,17 @@ noop_grab_axis(struct weston_pointer_grab *grab,
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
noop_grab_axis_source(struct weston_pointer_grab *grab,
|
||||
uint32_t source)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
noop_grab_frame(struct weston_pointer_grab *grab)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
constrain_position(struct weston_move_grab *move, int *cx, int *cy)
|
||||
{
|
||||
@@ -1686,6 +1697,8 @@ static const struct weston_pointer_grab_interface move_grab_interface = {
|
||||
move_grab_motion,
|
||||
move_grab_button,
|
||||
noop_grab_axis,
|
||||
noop_grab_axis_source,
|
||||
noop_grab_frame,
|
||||
move_grab_cancel,
|
||||
};
|
||||
|
||||
@@ -1851,6 +1864,8 @@ static const struct weston_pointer_grab_interface resize_grab_interface = {
|
||||
resize_grab_motion,
|
||||
resize_grab_button,
|
||||
noop_grab_axis,
|
||||
noop_grab_axis_source,
|
||||
noop_grab_frame,
|
||||
resize_grab_cancel,
|
||||
};
|
||||
|
||||
@@ -2016,6 +2031,8 @@ static const struct weston_pointer_grab_interface busy_cursor_grab_interface = {
|
||||
busy_cursor_grab_motion,
|
||||
busy_cursor_grab_button,
|
||||
noop_grab_axis,
|
||||
noop_grab_axis_source,
|
||||
noop_grab_frame,
|
||||
busy_cursor_grab_cancel,
|
||||
};
|
||||
|
||||
@@ -3213,6 +3230,18 @@ popup_grab_axis(struct weston_pointer_grab *grab,
|
||||
weston_pointer_send_axis(grab->pointer, time, event);
|
||||
}
|
||||
|
||||
static void
|
||||
popup_grab_axis_source(struct weston_pointer_grab *grab, uint32_t source)
|
||||
{
|
||||
weston_pointer_send_axis_source(grab->pointer, source);
|
||||
}
|
||||
|
||||
static void
|
||||
popup_grab_frame(struct weston_pointer_grab *grab)
|
||||
{
|
||||
weston_pointer_send_frame(grab->pointer);
|
||||
}
|
||||
|
||||
static void
|
||||
popup_grab_cancel(struct weston_pointer_grab *grab)
|
||||
{
|
||||
@@ -3224,6 +3253,8 @@ static const struct weston_pointer_grab_interface popup_grab_interface = {
|
||||
popup_grab_motion,
|
||||
popup_grab_button,
|
||||
popup_grab_axis,
|
||||
popup_grab_axis_source,
|
||||
popup_grab_frame,
|
||||
popup_grab_cancel,
|
||||
};
|
||||
|
||||
@@ -4923,6 +4954,8 @@ static const struct weston_pointer_grab_interface rotate_grab_interface = {
|
||||
rotate_grab_motion,
|
||||
rotate_grab_button,
|
||||
noop_grab_axis,
|
||||
noop_grab_axis_source,
|
||||
noop_grab_frame,
|
||||
rotate_grab_cancel,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user