diff options
author | 2019-03-20 22:16:53 +1000 | |
---|---|---|
committer | 2019-03-20 08:55:28 -0600 | |
commit | cdcc2a5bb52a34865eee2ec3d09a38b047c08ffd (patch) | |
tree | 326f7c5be7a51d56ce5617d6bc536c94db3cf129 /include | |
parent | Support WLR_INPUT_DEVICE_SWITCH in sway (diff) | |
download | sway-cdcc2a5bb52a34865eee2ec3d09a38b047c08ffd.tar.gz sway-cdcc2a5bb52a34865eee2ec3d09a38b047c08ffd.tar.zst sway-cdcc2a5bb52a34865eee2ec3d09a38b047c08ffd.zip |
Support focus <direction> for floating containers
This kind of worked before in that focus would change, but it wasn't
intentionally supported and had side effects such as not raising
the container, and being unable to cycle through all floaters depending
on the direction used.
This commit makes it properly supported. The new focus is chosen based
on the distance to the center point of each floating container in the
workspace, and the container is raised.
In a multi output setup, if both visible workspaces have floating
containers, focus will NOT cross into the other output. It is assumed
the user will use a workspace binding in this case.
If two floating containers occupy the exact same center point and you
try to focus in a direction, the behaviour is undefined.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions