Fixes for the last commit: check outputs instead of workspaces, correctly reset state when switching workspaces, little style fixes
This commit is contained in:
@ -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 we’re already there */
|
||||
|
Reference in New Issue
Block a user