diff options
author | marha <marha@users.sourceforge.net> | 2010-08-19 20:55:15 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-08-19 20:55:15 +0000 |
commit | 0ef233ddca61b9f3c72aa5f806ee818348f3aa20 (patch) | |
tree | 9ebcf3a881f9c387e5244055d48bc383f2afb16e /xorg-server/miext/rootless/rootlessWindow.c | |
parent | 2aa7bcf37f00b7884ae166d62db81493ea37934a (diff) | |
download | vcxsrv-0ef233ddca61b9f3c72aa5f806ee818348f3aa20.tar.gz vcxsrv-0ef233ddca61b9f3c72aa5f806ee818348f3aa20.tar.bz2 vcxsrv-0ef233ddca61b9f3c72aa5f806ee818348f3aa20.zip |
xserver git update 19/8/2010
Diffstat (limited to 'xorg-server/miext/rootless/rootlessWindow.c')
-rw-r--r-- | xorg-server/miext/rootless/rootlessWindow.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/xorg-server/miext/rootless/rootlessWindow.c b/xorg-server/miext/rootless/rootlessWindow.c index 9ec679395..e4fde4395 100644 --- a/xorg-server/miext/rootless/rootlessWindow.c +++ b/xorg-server/miext/rootless/rootlessWindow.c @@ -581,10 +581,15 @@ RootlessReorderWindow(WindowPtr pWin) RootlessStopDrawing(pWin, FALSE);
- /* Find the next window above this one that has a mapped frame. */
+ /* Find the next window above this one that has a mapped frame.
+ * Only include cases where the windows are in the same category of
+ * hittability to ensure offscreen windows dont get restacked
+ * relative to onscreen ones (but that the offscreen ones maintain
+ * their stacking order if they are explicitly asked to Reorder
+ */
newPrevW = pWin->prevSib;
- while (newPrevW && (WINREC(newPrevW) == NULL || !newPrevW->realized))
+ while (newPrevW && (WINREC(newPrevW) == NULL || !newPrevW->realized || newPrevW->rootlessUnhittable != pWin->rootlessUnhittable))
newPrevW = newPrevW->prevSib;
newPrev = newPrevW != NULL ? WINREC(newPrevW) : NULL;
@@ -1502,7 +1507,7 @@ RootlessChangeBorderWidth(WindowPtr pWin, unsigned int width) * (i.e in front of Aqua windows) -- called when X11.app is given focus
*/
void
-RootlessOrderAllWindows (void)
+RootlessOrderAllWindows (Bool include_unhitable)
{
int i;
WindowPtr pWin;
@@ -1519,6 +1524,7 @@ RootlessOrderAllWindows (void) for (pWin = pWin->firstChild; pWin != NULL; pWin = pWin->nextSib) {
if (!pWin->realized) continue;
if (RootlessEnsureFrame(pWin) == NULL) continue;
+ if (!include_unhitable && pWin->rootlessUnhittable) continue;
RootlessReorderWindow (pWin);
}
}
|