Skip to content

Commit 603dba8

Browse files
committed
workspace.c: Don't abort when requesting the index of an invalid
workspace. Originally done in 1a9d06e. ref: linuxmint/mint21-beta#89.
1 parent 47cd18c commit 603dba8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/core/workspace.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -686,10 +686,7 @@ meta_workspace_index (MetaWorkspace *workspace)
686686
int ret;
687687

688688
ret = g_list_index (workspace->manager->workspaces, workspace);
689-
690-
if (ret < 0)
691-
meta_bug ("Workspace does not exist to index!\n");
692-
689+
/* return value is negative if the workspace is invalid */
693690
return ret;
694691
}
695692

0 commit comments

Comments
 (0)