Fixes for the last commit: check outputs instead of workspaces, correctly reset state when switching workspaces, little style fixes

This commit is contained in:
Michael Stapelberg
2010-03-08 11:12:02 +01:00
parent 9c77b0f9a1
commit 4dfe61c2d4
2 changed files with 20 additions and 12 deletions

View File

@ -145,11 +145,14 @@ void workspace_show(xcb_connection_t *conn, int workspace) {
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 */
/* 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)
if (client != NULL && client->workspace != c_ws) {
if (c_ws->fullscreen_client->workspace != c_ws)
c_ws->fullscreen_client = NULL;
client_enter_fullscreen(conn, client, false);
}
}
/* Check if we need to change something or if were already there */