Update fullscreen client position/size when an output changes (Thanks Merovius)

This fixes #187.
next
Michael Stapelberg 2010-03-03 09:32:31 +01:00
parent 0ec3481c69
commit 3cfe1b35e0
1 changed files with 12 additions and 0 deletions

View File

@ -252,6 +252,18 @@ static void output_change_mode(xcb_connection_t *conn, Output *output) {
SLIST_FOREACH(client, &(ws->focus_stack), focus_clients)
client->force_reconfigure = true;
/* Update the dimensions of a fullscreen client, if any */
if (ws->fullscreen_client != NULL) {
DLOG("Updating fullscreen client size\n");
client = ws->fullscreen_client;
Rect r = ws->rect;
xcb_set_window_rect(conn, client->frame, r);
r.x = 0;
r.y = 0;
xcb_set_window_rect(conn, client->child, r);
}
}
}