1
From f3262eed20ce32f1162586df511d559bace4008c Mon Sep 17 00:00:00 2001
2
From: Sam Spilsbury <sam.spilsbury@canonical.com>
3
Date: Wed, 26 Jan 2011 14:54:54 +0800
4
Subject: [PATCH 2/3] Fix warning
8
1 files changed, 1 insertions(+), 1 deletions(-)
10
diff --git a/src/event.cpp b/src/event.cpp
11
index 7ab5843..ddded38 100644
14
@@ -1057,7 +1057,7 @@ CompScreen::handleEvent (XEvent *event)
15
* the window to the window list as we might get configure requests
16
* which require us to stack other windows relative to it. Setting
17
* some default values if this is the case. */
18
- if (failure = !XGetWindowAttributes (priv->dpy, event->xcreatewindow.window, &wa))
19
+ if ((failure = !XGetWindowAttributes (priv->dpy, event->xcreatewindow.window, &wa)))
20
priv->setDefaultWindowAttributes (&wa);
22
w = findTopLevelWindow (event->xcreatewindow.window, true);