Only arrange screen for non-floating wiboxes

Floating wiboxes dont influence client's position and thus no arrange
is necessary.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2009-04-11 14:15:41 +02:00
parent bf837f5d41
commit 34554d8958
1 changed files with 5 additions and 1 deletions

View File

@ -331,7 +331,11 @@ wibox_position_update(wibox_t *wibox)
if (wibox->screen == SCREEN_UNDEF)
return;
globalconf.screens[wibox->screen].need_arrange = true;
/* If this is a non-floating wibox, it 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. */
area = screen_area_get(wibox->screen, NULL,