summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2012-11-30 18:40:29 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2012-12-07 15:24:57 +1000
commita3836bba795891746b3f3782b2219d4d6c60d0fb (patch)
treec633c8f3cea1c8e4837eff2083ddf1eba38a4662
parent664f498f6b6e3d7914a1f56601f064d3fdb6fd52 (diff)
add root window
-rw-r--r--include/X11/extensions/XInput2.h1
-rw-r--r--src/XExtInt.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h
index c0709e3..787a8d0 100644
--- a/include/X11/extensions/XInput2.h
+++ b/include/X11/extensions/XInput2.h
@@ -342,6 +342,7 @@ typedef struct {
int deviceid;
int sourceid;
Window window;
+ Window root;
int root_x;
int root_y;
double dx;
diff --git a/src/XExtInt.c b/src/XExtInt.c
index 503e2d7..a0406ec 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -2007,6 +2007,7 @@ wireToBarrierEvent(xXIBarrierEvent *in, XGenericEventCookie *cookie)
out->evtype = in->evtype;
out->window = in->window;
+ out->root = in->root;
out->root_x = in->root_x;
out->root_y = in->root_y;
out->dx = FP3232_TO_DOUBLE (in->dx);