Skip to content

Commit

Permalink
Fix scenarios in which gotoWorkspace is buggy
Browse files Browse the repository at this point in the history
  • Loading branch information
nir9 committed Oct 2, 2024
1 parent c66ccd0 commit 8feda34
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tiling.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,13 @@ void focusNextWindow(bool goBack)

void gotoWorkspace(int number)
{
if (isFullscreen) {
isFullscreen = !isFullscreen;
newWorkspace = true;
}

tileWindows();

for (int i = 0; i < numOfCurrentlyManaged; i++) {
CloseWindow(managed[i]);
}
Expand All @@ -172,7 +179,8 @@ void gotoWorkspace(int number)
tileWindows();
}

void moveWindowToWorkspace(int workspaceNumber) {
void moveWindowToWorkspace(int workspaceNumber)
{
if (numOfCurrentlyManaged == 0) {
return;
}
Expand Down

0 comments on commit 8feda34

Please sign in to comment.