diff --git a/src/WindowManager.vala b/src/WindowManager.vala index 71649c81..8eff9761 100644 --- a/src/WindowManager.vala +++ b/src/WindowManager.vala @@ -504,7 +504,7 @@ namespace Gala var next = active.get_neighbor (direction); //dont allow empty workspaces to be created by moving, if we have dynamic workspaces - if (Prefs.get_dynamic_workspaces () && active.n_windows == 1 && next.index () == screen.n_workspaces - 1) { + if (Prefs.get_dynamic_workspaces () && Utils.get_n_windows (active) == 1 && next.index () == screen.n_workspaces - 1) { Utils.bell (screen); return; }