From d1d398db762fe7d5720f9b5fafa2bbe8372fceac Mon Sep 17 00:00:00 2001 From: George Staplin Date: Thu, 13 Nov 2008 01:27:33 -0700 Subject: [PATCH] XQuartz: Restore the logic of AppleWMDoReorderWindow to the same as the 1.4 branch. It was returning inverted values in comparison to the 1.4 branch. This resulted in the windows not drawing due to a deep path of: RootlessReorderWindow -> SCREENREC(pScreen)->imp->DoReorderWindow(winRec) - > xprDoReorderWindow -> AppleWMDoReorderWindow. --- hw/xquartz/applewm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/xquartz/applewm.c b/hw/xquartz/applewm.c index ba86f1045..6c624d0e9 100644 --- a/hw/xquartz/applewm.c +++ b/hw/xquartz/applewm.c @@ -175,7 +175,11 @@ AppleWMDoReorderWindow( atom = xa_apple_no_order_in(); rc = dixLookupProperty(&prop, pWin, atom, serverClient, DixReadAccess); - return (rc == Success) && (prop->type == atom); + + if(Success == rc && prop->type == atom) + return 0; + + return 1; }