We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf68ff7 commit bc8b941Copy full SHA for bc8b941
src/DesktopIntegration.vala
@@ -244,4 +244,15 @@ public class Gala.DesktopIntegration : GLib.Object {
244
245
wm.window_overview.open (hints);
246
}
247
+
248
+ public void reorder_workspace (int index, int new_index) throws DBusError, IOError {
249
+ unowned var workspace_manager = wm.get_display ().get_workspace_manager ();
250
+ unowned var workspace = workspace_manager.get_workspace_by_index (index);
251
252
+ if (workspace == null) {
253
+ throw new IOError.NOT_FOUND ("Invalid index, workspace not found");
254
+ }
255
256
+ workspace_manager.reorder_workspace (workspace, new_index);
257
258
0 commit comments