Remove the code for floating wiboxes from wibox_position_update_non_floating()
The last commit moved the handling of floating wiboxes into its own function, so the checks for floating wiboxes in here can be removed. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
b4b08fd926
commit
bee45f1b4a
11
wibox.c
11
wibox.c
|
@ -343,10 +343,9 @@ wibox_position_update_non_floating(wibox_t *wibox)
|
|||
if (wibox->screen == SCREEN_UNDEF)
|
||||
return;
|
||||
|
||||
/* If this is a non-floating wibox, it limits the space available to clients
|
||||
* and thus clients need to be repositioned.
|
||||
/* This wibox limits the space available to clients and thus clients
|
||||
* need to be repositioned.
|
||||
*/
|
||||
if (wibox->position != Floating)
|
||||
globalconf.screens[wibox->screen].need_arrange = true;
|
||||
|
||||
/* Place wibox'es at the edge of the screen, struts come later. */
|
||||
|
@ -354,7 +353,6 @@ wibox_position_update_non_floating(wibox_t *wibox)
|
|||
&globalconf.screens[wibox->screen].padding, false);
|
||||
|
||||
/* Top and Bottom wibox_t have prio */
|
||||
if(wibox->position != Floating)
|
||||
foreach(_w, globalconf.screens[wibox->screen].wiboxes)
|
||||
{
|
||||
wibox_t *w = *_w;
|
||||
|
@ -483,8 +481,9 @@ wibox_position_update_non_floating(wibox_t *wibox)
|
|||
}
|
||||
break;
|
||||
case Floating:
|
||||
wingeom.width = MAX(1, wibox->sw.geometry.width);
|
||||
wingeom.height = MAX(1, wibox->sw.geometry.height);
|
||||
/* Floating wiboxes are not handled here, but in
|
||||
* wibox_position_update_floating(), but the compiler insists...
|
||||
*/
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue