Update fullscreen client position/size when an output changes (Thanks Merovius)
This fixes #187.
This commit is contained in:
parent
0ec3481c69
commit
3cfe1b35e0
12
src/randr.c
12
src/randr.c
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue