Prevent moving out of fullscreen containers.

This commit is contained in:
Fernando Tarlá Cardoso Lemos
2012-05-26 21:45:15 -03:00
committed by Michael Stapelberg
parent 8bf4e9e059
commit 4452bfb942
2 changed files with 28 additions and 1 deletions

View File

@ -169,6 +169,12 @@ void tree_move(int direction) {
while (above->parent != same_orientation)
above = above->parent;
/* Enforce the fullscreen focus restrictions. */
if (!con_fullscreen_permits_focusing(above->parent)) {
LOG("Cannot move out of fullscreen container\n");
return;
}
DLOG("above = %p\n", above);
Con *next;
position_t position;