summaryrefslogtreecommitdiffstats
path: root/source/modes/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/modes/window.c')
-rw-r--r--source/modes/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/modes/window.c b/source/modes/window.c
index c8690212..a0e3d136 100644
--- a/source/modes/window.c
+++ b/source/modes/window.c
@@ -294,7 +294,7 @@ window_get_attributes(xcb_window_t w) {
// _NET_WM_STATE_*
static int client_has_state(client *c, xcb_atom_t state) {
for (int i = 0; i < c->states; i++) {
- if (c->state[i] == state) {
+ if ((c->state[i] & state) == state) {
return 1;
}
}