diff options
author | Michael Stapelberg <michael+git@stapelberg.de> | 2009-05-03 22:59:50 +0200 |
---|---|---|
committer | Michael Stapelberg <michael+git@stapelberg.de> | 2009-05-03 22:59:50 +0200 |
commit | 4a6a748561028ef637a5d899565d8b8c5123da27 (patch) | |
tree | 306cc49a9f1872b5ed01c6953c0cd9580b22d85d | |
parent | c3c05db579b5e14fdd75aecb91b722dc8aad67f6 (diff) | |
download | i3-4a6a748561028ef637a5d899565d8b8c5123da27.tar.gz i3-4a6a748561028ef637a5d899565d8b8c5123da27.zip |
Bugfix: Reconfigure bar window when changing resolutions (Thanks Mirko)3.a-bf2
-rw-r--r-- | src/xinerama.c | 17 | ||||
-rw-r--r-- | website/downloads/index.html | 5 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/xinerama.c b/src/xinerama.c index 4926dfbd..3a1b19a7 100644 --- a/src/xinerama.c +++ b/src/xinerama.c @@ -163,6 +163,11 @@ static void query_screens(xcb_connection_t *conn, struct screens_head *screenlis } free(reply); + + if (num_screens == 0) { + LOG("No screens found. This is weird.\n"); + exit(1); + } } static void initialize_screen(xcb_connection_t *conn, i3Screen *screen, Workspace *workspace) { @@ -232,6 +237,8 @@ void initialize_xinerama(xcb_connection_t *conn) { * */ void xinerama_requery_screens(xcb_connection_t *conn) { + i3Font *font = load_font(conn, config.font); + /* POSSIBLE PROBLEM: Is the order of the Xinerama screens always constant? That is, can it change when I move the --right-of video projector to --left-of? */ @@ -267,6 +274,16 @@ void xinerama_requery_screens(xcb_connection_t *conn) { screen->bar = workspaces[c].screen->bar; screen->bargc = workspaces[c].screen->bargc; + Rect bar_rect = {screen->rect.x, + screen->rect.height - (font->height + 6), + screen->rect.x + screen->rect.width, + font->height + 6}; + + xcb_configure_window(conn, screen->bar, XCB_CONFIG_WINDOW_X | + XCB_CONFIG_WINDOW_Y | + XCB_CONFIG_WINDOW_WIDTH | + XCB_CONFIG_WINDOW_HEIGHT, &(bar_rect.x)); + /* Copy the list head for the dock clients */ screen->dock_clients = workspaces[c].screen->dock_clients; diff --git a/website/downloads/index.html b/website/downloads/index.html index 65c28727..b7b0dab3 100644 --- a/website/downloads/index.html +++ b/website/downloads/index.html @@ -89,6 +89,11 @@ li { <ul> <li> + <a href="/downloads/i3-3.a-bf2.tar.bz2">i3-3.a-bf2.tar.bz2</a> + (<a href="/downloads/i3-3.a-bf2.tar.bz2.asc">GPG signature</a>), Version 3.α-bf2, 65 KiB, 2009-05-03, + hotfix for a problem with -bf1 + </li> + <li> <a href="/downloads/i3-3.a-bf1.tar.bz2">i3-3.a-bf1.tar.bz2</a> (<a href="/downloads/i3-3.a-bf1.tar.bz2.asc">GPG signature</a>), Version 3.α-bf1, 65 KiB, 2009-05-03, <a href="/downloads/RELEASE-NOTES-3.a-bf1.txt">release notes</a> |