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:02:56 -0700 |
commit | 2d4194a8d124e7a9c7cd1b83635ba6957aa4ae1c (patch) | |
tree | fd8898beb69e1ed090f4ed0596da565a2834e47a /dix | |
parent | 6acb674a7a5c82b7b7e012726d1fd9cc0e60a3ae (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)
Diffstat (limited to 'dix')
-rw-r--r-- | dix/events.c | 7 | ||||
-rw-r--r-- | dix/window.c | 3 |
2 files changed, 10 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) diff --git a/dix/window.c b/dix/window.c index 9975b5eec..499f58e7a 100644 --- a/dix/window.c +++ b/dix/window.c @@ -292,6 +292,9 @@ SetWindowToDefaults(WindowPtr pWin) pWin->forcedBS = FALSE; pWin->redirectDraw = RedirectDrawNone; pWin->forcedBG = FALSE; +#ifdef ROOTLESS + pWin->rootlessUnhittable = FALSE; +#endif } static void |