summaryrefslogtreecommitdiff
path: root/hw/darwin/quartz/cr
diff options
context:
space:
mode:
authorTorrey Lyons <torrey@mrcla.com>2004-10-08 00:35:08 +0000
committerTorrey Lyons <torrey@mrcla.com>2004-10-08 00:35:08 +0000
commitfa9847aeb9094aafc3798aee1fc8379e77a18d6a (patch)
treec0272daf2dc76defdf3879e96528af88f7d0e9e1 /hw/darwin/quartz/cr
parentd737bc3300cf1847bcea08ca781f37ee3ee62692 (diff)
Allow rootless implementations to override frame reordering. This is used
on Mac OS X when genie-restoring from the Dock to ensure that the animation completes before drawing the frame.
Diffstat (limited to 'hw/darwin/quartz/cr')
-rw-r--r--hw/darwin/quartz/cr/crFrame.m16
1 files changed, 15 insertions, 1 deletions
diff --git a/hw/darwin/quartz/cr/crFrame.m b/hw/darwin/quartz/cr/crFrame.m
index 2fade0c80..79d55a4d1 100644
--- a/hw/darwin/quartz/cr/crFrame.m
+++ b/hw/darwin/quartz/cr/crFrame.m
@@ -27,7 +27,7 @@
* holders shall not be used in advertising or otherwise to promote the sale,
* use or other dealings in this Software without prior written authorization.
*/
-/* $XdotOrg$ */
+/* $XdotOrg: xc/programs/Xserver/hw/darwin/quartz/cr/crFrame.m,v 1.2 2004/04/23 19:15:51 eich Exp $ */
/* $XFree86: xc/programs/Xserver/hw/darwin/quartz/cr/crFrame.m,v 1.9 2004/03/19 02:05:29 torrey Exp $ */
#include "quartzCommon.h"
@@ -36,6 +36,7 @@
#undef BOOL
#define BOOL xBOOL
#include "rootless.h"
+#include "applewmExt.h"
#include "windowstr.h"
#undef BOOL
@@ -389,6 +390,17 @@ CRDamageRects(RootlessFrameID wid, int count, const BoxRec *rects,
}
+/*
+ * Called to check if the frame should be reordered when it is restacked.
+ */
+Bool CRDoReorderWindow(RootlessWindowPtr pFrame)
+{
+ WindowPtr pWin = pFrame->win;
+
+ return AppleWMDoReorderWindow(pWin);
+}
+
+
static RootlessFrameProcsRec CRRootlessProcs = {
CRCreateFrame,
CRDestroyFrame,
@@ -402,6 +414,8 @@ static RootlessFrameProcsRec CRRootlessProcs = {
CRUpdateRegion,
CRDamageRects,
NULL,
+ CRDoReorderWindow,
+ NULL,
NULL,
NULL,
NULL