Fix feature expose when there is no client on the screen.

Bug found by pistache
This commit is contained in:
Raphael Khaiat 2011-03-24 13:05:37 +01:00
parent 6372f3974c
commit df4e32f4f9
2 changed files with 7 additions and 3 deletions

View File

@ -747,12 +747,16 @@ uicb_tag_toggle_expose(uicb_t cmd)
{
if(strcmp(tags[selscreen][i].name, conf.tag_expose_name) == 0)
{
if(clients && sel->tag)
tag_set(sel->tag);
tag_delete(selscreen, i);
for(j = 0; j < conf.ntag[selscreen]; j++)
tags[selscreen][j].request_update = True;
arrange(selscreen, True);
return;
}
}

2
wmfsrc
View File

@ -131,7 +131,7 @@
border = true
# Hide empty tags in tag list
autohide = false
autohide = true
# Mouse buttons action on tag.
mouse_button_tag_sel = "1"