From: Michael Stapelberg Date: Sat, 28 Feb 2009 00:01:06 +0000 (+0100) Subject: Bugfix: Fix two bugs in fullscreen mode X-Git-Tag: 3.a~143 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e4b637b67b9d6dff1979a55d8ce8da07f657fa12;p=i3%2Fi3 Bugfix: Fix two bugs in fullscreen mode --- diff --git a/src/util.c b/src/util.c index f68c9797..a25e6376 100644 --- a/src/util.c +++ b/src/util.c @@ -256,13 +256,17 @@ void toggle_fullscreen(xcb_connection_t *conn, Client *client) { printf("child itself will be at %dx%d with size %dx%d\n", values[0], values[1], values[2], values[3]); + xcb_configure_window(conn, client->frame, mask, values); + + /* Child’s coordinates are relative to the parent (=frame) */ + values[0] = 0; + values[1] = 0; + xcb_configure_window(conn, client->child, mask, values); + /* Raise the window */ values[0] = XCB_STACK_MODE_ABOVE; xcb_configure_window(conn, client->frame, XCB_CONFIG_WINDOW_STACK_MODE, values); - xcb_configure_window(conn, client->frame, mask, values); - xcb_configure_window(conn, client->child, mask, values); - xcb_flush(conn); } else { printf("leaving fullscreen mode\n");