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~51 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ad84c07c8a51eac214ff552576a1b54bf62d433c;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 df7f9408..d0f8b46c 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;