mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-03 04:23:42 -05:00
[window] Check bitmask, not full comparison
This commit is contained in:
parent
5ae8fa5a3f
commit
5185895643
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ window_get_attributes(xcb_window_t w) {
|
||||||
// _NET_WM_STATE_*
|
// _NET_WM_STATE_*
|
||||||
static int client_has_state(client *c, xcb_atom_t state) {
|
static int client_has_state(client *c, xcb_atom_t state) {
|
||||||
for (int i = 0; i < c->states; i++) {
|
for (int i = 0; i < c->states; i++) {
|
||||||
if (c->state[i] == state) {
|
if ((c->state[i] & state) == state) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue