Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions src/InternalUtils.vala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright 2012 Tom Beckmann
* Copyright 2012 Rico Tzschichholz
* Copyright 2023 elementary, Inc. <https://elementary.io>
* Copyright 2023-2025 elementary, Inc. <https://elementary.io>
* SPDX-License-Identifier: GPL-3.0-or-later
*/

Expand Down Expand Up @@ -275,19 +275,6 @@ namespace Gala {
}
}

/**
* Returns the workspaces geometry following the only_on_primary settings.
*/
public static Mtk.Rectangle get_workspaces_geometry (Meta.Display display) {
if (Meta.Prefs.get_workspaces_only_on_primary ()) {
return display.get_monitor_geometry (display.get_primary_monitor ());
} else {
float screen_width, screen_height;
display.get_size (out screen_width, out screen_height);
return { 0, 0, (int) screen_width, (int) screen_height };
}
}

public static Clutter.ActorBox actor_box_from_rect (float x, float y, float width, float height) {
var actor_box = Clutter.ActorBox ();
actor_box.init_rect (x, y, width, height);
Expand Down