summaryrefslogtreecommitdiff
path: root/miext
diff options
context:
space:
mode:
authorGeorge Peter Staplin <gps@Georges-Workstation.local>2008-10-23 16:19:58 -0600
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-10-23 16:31:44 -0700
commitb397cc727787a854417b11b482cce4807fc8ab58 (patch)
tree821da77580c0c90fb2c8344932ee7cf68e2ba660 /miext
parent28d4f71193d2be26d1dcae724067539ac9db1123 (diff)
miext/rootless: Fix the usage of DeleteProperty so that this builds again.
(cherry picked from commit 3de250e28a9a86bcae4464a15c2025805877ce1e)
Diffstat (limited to 'miext')
-rw-r--r--miext/rootless/rootlessWindow.c24
1 files changed, 17 insertions, 7 deletions
diff --git a/miext/rootless/rootlessWindow.c b/miext/rootless/rootlessWindow.c
index 5ef139101..a2d03130f 100644
--- a/miext/rootless/rootlessWindow.c
+++ b/miext/rootless/rootlessWindow.c
@@ -272,6 +272,12 @@ RootlessGetShape(WindowPtr pWin, RegionPtr pShape)
{
ScreenPtr pScreen = pWin->drawable.pScreen;
+ /*
+ * Avoid a warning.
+ * REGION_NULL and the other macros don't actually seem to use pScreen.
+ */
+ (void)pScreen;
+
if (wBoundingShape(pWin) == NULL)
return FALSE;
@@ -1598,15 +1604,19 @@ RootlessDisableRoot (ScreenPtr pScreen)
{
WindowPtr pRoot;
RootlessWindowRec *winRec;
-
+
pRoot = WindowTable[pScreen->myNum];
winRec = WINREC (pRoot);
-
- if (winRec != NULL)
- {
- RootlessDestroyFrame (pRoot, winRec);
- DeleteProperty (pRoot, xa_native_window_id ());
- }
+
+ if (NULL == winRec)
+ return;
+
+ RootlessDestroyFrame (pRoot, winRec);
+ /*
+ * gstaplin: I fixed the usage of this DeleteProperty so that it would compile.
+ * QUESTION: Where is this xa_native_window_id set?
+ */
+ DeleteProperty (serverClient, pRoot, xa_native_window_id ());
}
void