summaryrefslogtreecommitdiff
path: root/src/workarounds.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/workarounds.cpp')
-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)