]> git.sur5r.net Git - i3/i3/commit - src/commands.c
Make 'focus' disable blocking fullscreen windows 2969/head
authorOrestis Floros <orestisf1993@gmail.com>
Sat, 16 Sep 2017 23:20:48 +0000 (02:20 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Mon, 11 Dec 2017 17:14:33 +0000 (19:14 +0200)
commit2403c43f7b72c0a5230ff7aa0dd67c687fc9ba5e
tree79dbf6d6b6ab946cde9b334affaf816f03c48bf1
parent994a479558a6b93e286ce03d6f00db3a3a9c6fcf
Make 'focus' disable blocking fullscreen windows

The problem here is that con_fullscreen_permits_focusing() does not
check if there is a blocking fullscreen container in the workspace that
the container to be focused belongs. This makes it possible to focus a
container behind a fullscreen window if it's in an unfocused workspace.

This commit introduces a change in the 'focus' command behaviour. When
focusing a container blocked by a fullscreen container, either CF_OUTPUT
or CF_GLOBAL, the blocking container loses its fullscreen mode and the
target container is focused like normal.

This should not affect directional focus commands: left, right, up,
down, parent, child.

Fixes issue #1819.
src/commands.c
testcases/t/156-fullscreen-focus.t