Don't call con_fullscreen_permits_focusing with ignore_focus
When we don't modify the focus we aren't risking giving focus to a container behind the current fullscreen one. _con_move_to_con can with ignore_focus is called through the swap command or through con_move_to_workspace for floating containers. This change shouldn't break the expectations of the callers there. Fixes issue #3259.
This commit is contained in:
@ -1097,7 +1097,7 @@ static bool _con_move_to_con(Con *con, Con *target, bool behind_focused, bool fi
|
||||
|
||||
/* Prevent moving if this would violate the fullscreen focus restrictions. */
|
||||
Con *target_ws = con_get_workspace(target);
|
||||
if (!con_fullscreen_permits_focusing(target_ws)) {
|
||||
if (!ignore_focus && !con_fullscreen_permits_focusing(target_ws)) {
|
||||
LOG("Cannot move out of a fullscreen container.\n");
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user