Prevent moving out of fullscreen containers.
This commit is contained in:
committed by
Michael Stapelberg
parent
8bf4e9e059
commit
4452bfb942
@ -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;
|
||||
|
Reference in New Issue
Block a user