summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-08-12 13:42:19 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-08-12 13:42:19 +0800
commit8a1750641d282e41ae1ca3c02d645b9a840abb0a (patch)
tree10c1e134b3789664b0e61179826176fe0b89c812
parent36d6b677f19c92ca2fd1d48d330df076cfaa1c29 (diff)
downloadworkarounds-8a1750641d282e41ae1ca3c02d645b9a840abb0a.tar.gz
workarounds-8a1750641d282e41ae1ca3c02d645b9a840abb0a.tar.bz2
Fix crash
-rw-r--r--src/workarounds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/workarounds.cpp b/src/workarounds.cpp
index 52abf44..ac0936a 100644
--- a/src/workarounds.cpp
+++ b/src/workarounds.cpp
@@ -711,7 +711,7 @@ WorkaroundsWindow::getFixedWindowType ()
newWmType = window->wmType ();
- if (XGetClassHint (screen->dpy (), window->id (), &classHint) != Success)
+ if (!XGetClassHint (screen->dpy (), window->id (), &classHint))
return newWmType;
if (classHint.res_name)