Skip to content

Commit

Permalink
Revert "[window] Check bitmask, not full comparison"
Browse files Browse the repository at this point in the history
This reverts commit 5185895.
  • Loading branch information
DaveDavenport committed Jan 3, 2025
1 parent de4e10a commit 496101a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/modes/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,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) == state) {
if (c->state[i] == state) {
return 1;
}
}
Expand Down

0 comments on commit 496101a

Please sign in to comment.