Implement screen-spanning fullscreen-mode (command: 'fg')

This closes ticket #188
This commit is contained in:
Axel Wagner
2010-03-08 02:02:35 +01:00
committed by Michael Stapelberg
parent 496106cd44
commit 9c77b0f9a1
5 changed files with 124 additions and 29 deletions

View File

@ -144,6 +144,12 @@ void workspace_show(xcb_connection_t *conn, int workspace) {
if ((old_client != NULL) && !old_client->dock)
redecorate_window(conn, old_client);
else xcb_flush(conn);
/* We need to check, if a global fullscreen-client is blocking the t_ws and if
* necessary switch that to local fullscreen */
Client* client = c_ws->fullscreen_client;
if (client != NULL && client->workspace != c_ws)
client_enter_fullscreen(conn, client, false);
}
/* Check if we need to change something or if were already there */