Do not try to move window to workspace which it is already on (#527)

This commit is contained in:
Adam Bieńkowski 2019-05-14 10:24:27 +02:00 committed by Rico Tzschichholz
parent 4459c5918e
commit 2a6da29d8b

View File

@ -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;
}