wibox: check floating size
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
76a77cf070
commit
993f83b788
3
wibox.c
3
wibox.c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue