wibox: check floating size

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-03 17:54:56 +01:00
parent 76a77cf070
commit 993f83b788
1 changed files with 57 additions and 54 deletions

View File

@ -282,6 +282,7 @@ wibox_position_update(wibox_t *wibox)
&globalconf.screens[wibox->screen].padding, true);
/* Top and Bottom wibox_t have prio */
if(wibox->position != Floating)
for(int i = 0; i < globalconf.screens[wibox->screen].wiboxes.len; i++)
{
wibox_t *w = globalconf.screens[wibox->screen].wiboxes.tab[i];
@ -423,6 +424,8 @@ wibox_position_update(wibox_t *wibox)
}
break;
case Floating:
wingeom.width = MAX(1, wibox->sw.geometry.width);
wingeom.height = MAX(1, wibox->sw.geometry.height);
break;
}