mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 15:15:39 +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);
|
var next = active.get_neighbor (direction);
|
||||||
|
|
||||||
//dont allow empty workspaces to be created by moving, if we have dynamic workspaces
|
//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);
|
Utils.bell (screen);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user