summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xfce-base/xfwm4/files/xfwm4-4.12-touchscreen-subwindow-fix.patch')
-rw-r--r--xfce-base/xfwm4/files/xfwm4-4.12-touchscreen-subwindow-fix.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/xfce-base/xfwm4/files/xfwm4-4.12-touchscreen-subwindow-fix.patch b/xfce-base/xfwm4/files/xfwm4-4.12-touchscreen-subwindow-fix.patch
new file mode 100644
index 000000000000..98de1cab3f6c
--- /dev/null
+++ b/xfce-base/xfwm4/files/xfwm4-4.12-touchscreen-subwindow-fix.patch
@@ -0,0 +1,17 @@
+diff -ur xfwm4-4.10.1/src/events.c b/src/events.c
+--- xfwm4-4.10.1/src/events.c 2014-10-31 14:19:18.012757936 -0600
++++ b/src/events.c 2014-10-31 14:18:54.901758349 -0600
+@@ -888,6 +888,13 @@
+ {
+ state = ev->state & MODIFIER_MASK;
+ win = ev->subwindow;
++ if (!win) {
++ Window root_ret;
++ int rx,ry,wx,wy;
++ unsigned int mask_ret;
++ XQueryPointer(display_info->dpy, ev->window,
++ &root_ret, &win, &rx, &ry, &wx, &wy, &mask_ret);
++ }
+ screen_info = c->screen_info;
+
+ if ((ev->button == Button1) && (state) && (state == screen_info->params->easy_click))