ewmh: check tags tab size
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
85caf26d63
commit
a7c7ab2eb0
3
ewmh.c
3
ewmh.c
|
@ -175,7 +175,8 @@ ewmh_update_net_current_desktop(int phys_screen)
|
|||
uint32_t count = 0;
|
||||
tag_t **curtags = tags_get_current(phys_screen);
|
||||
|
||||
for(count = 0; tags->tab[count] != curtags[0]; count++);
|
||||
while(count < (uint32_t) tags->len && tags->tab[count] != curtags[0])
|
||||
count++;
|
||||
|
||||
xcb_change_property(globalconf.connection, XCB_PROP_MODE_REPLACE,
|
||||
xutil_screen_get(globalconf.connection, phys_screen)->root,
|
||||
|
|
Loading…
Reference in New Issue