Skip to content

Commit 19731f7

Browse files
committed
WorkspaceManager: check monitor
1 parent 52f7a16 commit 19731f7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/WorkspaceManager.vala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,12 @@ public class Gala.WorkspaceManager : Object {
113113
foreach (var actor in window_actors) {
114114
var win = actor.meta_window;
115115

116-
if (win == null || win.on_all_workspaces || win.get_workspace () == null) {
116+
if (
117+
win == null ||
118+
win.on_all_workspaces ||
119+
Meta.Prefs.get_workspaces_only_on_primary () && !win.is_on_primary_monitor () ||
120+
win.get_workspace () == null
121+
) {
117122
continue;
118123
}
119124

0 commit comments

Comments
 (0)