mirror of
https://github.com/elementary/gala.git
synced 2024-12-24 17:53:19 +03:00
Dont move single window from last workspace to a new one (#240)
Fix incorrect counting of windows when moving window to a new workspace.
This commit is contained in:
parent
a15dc07379
commit
f1a491753a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user