diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2019-03-20 22:16:53 +1000 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-20 08:55:28 -0600 |
commit | cdcc2a5bb52a34865eee2ec3d09a38b047c08ffd (patch) | |
tree | 326f7c5be7a51d56ce5617d6bc536c94db3cf129 /sway/commands/show_marks.c | |
parent | bdb402404cd6d54242b0b1dc2360cfc5679e52f2 (diff) |
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 'sway/commands/show_marks.c')
0 files changed, 0 insertions, 0 deletions