From 34554d895843980e969abd99c936b8a18d543db9 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 11 Apr 2009 14:15:41 +0200 Subject: [PATCH] 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 --- wibox.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wibox.c b/wibox.c index dd3acf2b..cefc65c9 100644 --- a/wibox.c +++ b/wibox.c @@ -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,