summaryrefslogtreecommitdiff
blob: 368643b75ee2d31a37d79426aea36fe7c4491635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -1647,7 +1647,8 @@ ProcessTouchOwnership(DeviceIntPtr dev,
                     if (ev == ti->history + ti->history_size)
                         ev = ti->history;
                 }
-            } else if (tc->type == TOUCH_SELECT_UNOWNED &&
+            } else if ((tc->type == TOUCH_SELECT_UNOWNED ||
+                        tc->type == TOUCH_GRAB) &&
                        !ti->emulate_pointer) {
                 DeliverTouchOwnershipEvent(tc, ti);
             }