Skip to content

Instantly share code, notes, and snippets.

@Tireg
Created November 4, 2019 19:08
Show Gist options
  • Save Tireg/27e7ab0225efb8ceec47566d2bfc2b07 to your computer and use it in GitHub Desktop.
Save Tireg/27e7ab0225efb8ceec47566d2bfc2b07 to your computer and use it in GitHub Desktop.
Temporary workaround for broken functions under gala with mutter 3.32+
diff --git a/src/WorkspaceManager.vala b/src/WorkspaceManager.vala
index dd4a09e..0815683 100644
--- a/src/WorkspaceManager.vala
+++ b/src/WorkspaceManager.vala
@@ -149,7 +149,7 @@ namespace Gala
var prev_workspace = manager.get_workspace_by_index (from);
if (Utils.get_n_windows (prev_workspace) < 1
&& from != manager.get_n_workspaces () - 1) {
- remove_workspace (prev_workspace);
+ //remove_workspace (prev_workspace);
}
}
#else
@@ -241,7 +241,7 @@ namespace Gala
&& remove_freeze_count < 1
&& Utils.get_n_windows (workspace) < 1
&& index != last_workspace) {
- remove_workspace (workspace);
+ //remove_workspace (workspace);
}
}
@@ -352,7 +352,7 @@ namespace Gala
workspaces_marked_removed.add (workspace);
#if HAS_MUTTER330
- manager.remove_workspace (workspace, time);
+ //manager.remove_workspace (workspace, time);
#else
screen.remove_workspace (workspace, time);
#endif
@@ -394,7 +394,7 @@ namespace Gala
unowned Meta.Workspace workspace = manager.get_workspace_by_index (i);
if (Utils.get_n_windows (workspace) < 1
&& workspace.index () != last_index) {
- remove_workspace (workspace);
+ //remove_workspace (workspace);
}
}
#else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment