diff options
author | Dave Davenport <qball@blame.services> | 2022-09-25 21:45:20 +0200 |
---|---|---|
committer | Dave Davenport <qball@blame.services> | 2022-09-25 21:45:51 +0200 |
commit | 51858956438bfa234c65758b01edc3ba5fb480e6 (patch) | |
tree | a2c916d3705afc79504a5955334499a9f8d640f0 /source/modes/window.c | |
parent | 5ae8fa5a3f691a0753d7f612ae2b07add7881d4d (diff) |
[window] Check bitmask, not full comparison
Diffstat (limited to 'source/modes/window.c')
-rw-r--r-- | source/modes/window.c | 2 |
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; } } |