Bugfix: Fix two bugs in fullscreen mode

next
Michael Stapelberg 2009-02-28 01:01:06 +01:00
parent 10c5702a78
commit e4b637b67b
1 changed files with 7 additions and 3 deletions

View File

@ -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);
/* Childs 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");