[PATCH 4/4] wayland-server: Add a wl_pointer_grab flag for relative motion grabs
Kristian Høgsberg
krh at bitplanet.net
Mon Feb 25 18:24:48 PST 2013
---
src/wayland-server.c | 1 +
src/wayland-server.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/wayland-server.c b/src/wayland-server.c
index dae7177..469cd11 100644
--- a/src/wayland-server.c
+++ b/src/wayland-server.c
@@ -948,6 +948,7 @@ wl_pointer_start_grab(struct wl_pointer *pointer, struct wl_pointer_grab *grab)
pointer->grab = grab;
interface = pointer->grab->interface;
grab->pointer = pointer;
+ grab->relative = 0;
if (pointer->current)
interface->focus(pointer->grab, pointer->current,
diff --git a/src/wayland-server.h b/src/wayland-server.h
index c7369eb..c316729 100644
--- a/src/wayland-server.h
+++ b/src/wayland-server.h
@@ -219,6 +219,7 @@ struct wl_pointer_grab {
struct wl_pointer *pointer;
struct wl_surface *focus;
wl_fixed_t x, y;
+ int relative;
};
struct wl_keyboard_grab;
--
1.8.1.2
More information about the wayland-devel
mailing list