From: Michael Stapelberg Date: Sat, 21 Mar 2015 21:50:48 +0000 (+0100) Subject: i3bar: set correct initial position when reconfiguring X-Git-Tag: 4.10.1~39 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9493b61bb4b04763371be40760b6f49a2a0339db;p=i3%2Fi3 i3bar: set correct initial position when reconfiguring fixes #1542 --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index e1ad03e8..8b93902e 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -1665,7 +1665,10 @@ void reconfig_windows(bool redraw_bars) { XCB_CONFIG_WINDOW_HEIGHT | XCB_CONFIG_WINDOW_STACK_MODE; values[0] = walk->rect.x; - values[1] = walk->rect.y + walk->rect.h - bar_height; + if (config.position == POS_TOP) + values[1] = walk->rect.y; + else + values[1] = walk->rect.y + walk->rect.h - bar_height; values[2] = walk->rect.w; values[3] = bar_height; values[4] = XCB_STACK_MODE_ABOVE;