Restrict "move to workspace" commands in fullscreen.

This commit is contained in:
Fernando Tarlá Cardoso Lemos
2012-05-26 22:13:16 -03:00
committed by Michael Stapelberg
parent 4452bfb942
commit fffc53c246
2 changed files with 49 additions and 6 deletions

View File

@ -576,6 +576,12 @@ void con_move_to_workspace(Con *con, Con *workspace, bool fix_coordinates, bool
return;
}
/* Prevent moving if this would violate the fullscreen focus restrictions. */
if (!con_fullscreen_permits_focusing(workspace)) {
LOG("Cannot move out of a fullscreen container");
return;
}
if (con_is_floating(con)) {
DLOG("Using FLOATINGCON instead\n");
con = con->parent;