ewmh: check tags tab size

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-07 16:23:43 +02:00
parent 85caf26d63
commit a7c7ab2eb0
1 changed files with 2 additions and 1 deletions

3
ewmh.c
View File

@ -175,7 +175,8 @@ ewmh_update_net_current_desktop(int phys_screen)
uint32_t count = 0; uint32_t count = 0;
tag_t **curtags = tags_get_current(phys_screen); 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, xcb_change_property(globalconf.connection, XCB_PROP_MODE_REPLACE,
xutil_screen_get(globalconf.connection, phys_screen)->root, xutil_screen_get(globalconf.connection, phys_screen)->root,