From: Michael Stapelberg Date: Wed, 7 Oct 2009 18:52:53 +0000 (+0200) Subject: Bugfix: Correctly position bar window when using xrandr --below or --above (Thanks... X-Git-Tag: 3.d-bf1~33 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=74ccdb4;p=i3%2Fi3 Bugfix: Correctly position bar window when using xrandr --below or --above (Thanks Mirko, dirkson) --- diff --git a/src/xinerama.c b/src/xinerama.c index f40ec84b..4197939c 100644 --- a/src/xinerama.c +++ b/src/xinerama.c @@ -137,7 +137,7 @@ static void initialize_screen(xcb_connection_t *conn, i3Screen *screen, Workspac /* Create a bar for each screen */ Rect bar_rect = {screen->rect.x, - screen->rect.height - (font->height + 6), + screen->rect.y + screen->rect.height - (font->height + 6), screen->rect.x + screen->rect.width, font->height + 6}; uint32_t mask = XCB_CW_OVERRIDE_REDIRECT | XCB_CW_EVENT_MASK;