summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Baer <roland@Vista.(none)>2007-08-15 14:54:08 -0700
committerAndrew Riedi <andrewriedi@gmail.com>2007-08-15 14:54:08 -0700
commitda540cc46edc08f04a039fd539451b4dbfcaf8a9 (patch)
tree8d0ee4a51df7f9fcfc1e0be3d7610641a5742354
parent2dd915dfbf5537e59bdce8e492867f18255701fb (diff)
downloadworkarounds-da540cc46edc08f04a039fd539451b4dbfcaf8a9.tar.gz
workarounds-da540cc46edc08f04a039fd539451b4dbfcaf8a9.tar.bz2
Added return value check on findWindowAtDisplay().
-rw-r--r--workarounds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/workarounds.c b/workarounds.c
index f5094ff..be4fd8e 100644
--- a/workarounds.c
+++ b/workarounds.c
@@ -259,7 +259,9 @@ workaroundsHandleEvent (CompDisplay *d,
if (event->xclient.message_type == d->winDesktopAtom)
{
w = findWindowAtDisplay (d, event->xclient.window);
- workaroundsUpdateSticky (w);
+ if (w) {
+ workaroundsUpdateSticky (w);
+ }
}
}
}