mirror of
https://github.com/elementary/gala.git
synced 2024-08-16 18:40:27 +03:00
Do not try to move window to workspace which it is already on (#527)
This commit is contained in:
parent
4459c5918e
commit
2a6da29d8b
@ -575,7 +575,8 @@ 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 () && Utils.get_n_windows (active) == 1 && next.index () == screen.n_workspaces - 1) {
|
||||
if ((Prefs.get_dynamic_workspaces () && Utils.get_n_windows (active) == 1 && next.index () == screen.n_workspaces - 1)
|
||||
|| (active == next)) {
|
||||
Utils.bell (screen);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user