diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-04-08 17:02:56 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-04-08 17:03:18 -0700 |
commit | 3f51f493b6daf2464e6c2ba5a924219b88a9e57e (patch) | |
tree | cc906272192effaa60d04c6a43cfb27afa34be76 /dix/events.c | |
parent | 08073862f8c4e1219b6459708ffd28e2bc35885f (diff) |
XQuartz: Fix issue where clicking on an X11 window might send that event to an X11 window in another space.
(cherry picked from commit df21312c8b0e9ef0c809bfc57cdf64f27db0d8a7)
(cherry picked from commit 2d4194a8d124e7a9c7cd1b83635ba6957aa4ae1c)
Diffstat (limited to 'dix/events.c')
-rw-r--r-- | dix/events.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dix/events.c b/dix/events.c index 4a8e480c8..aef333ede 100644 --- a/dix/events.c +++ b/dix/events.c @@ -2171,6 +2171,13 @@ XYToWindow(int x, int y) x - pWin->drawable.x, y - pWin->drawable.y, &box)) #endif +#ifdef ROOTLESS + /* In rootless mode windows may be offscreen, even when + * they're in X's stack. (E.g. if the native window system + * implements some form of virtual desktop system). + */ + && !pWin->rootlessUnhittable +#endif ) { if (spriteTraceGood >= spriteTraceSize) |