diff options
author | Thayne McCombs <astrothayne@gmail.com> | 2020-01-21 01:32:22 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-07-27 11:27:47 +0200 |
commit | cfa403fc58f3df9cdef2bc03d0a8bbdd4333ed00 (patch) | |
tree | f3fe67513a7b4d574039d7f1b55b0cffc4cf673f /sway/commands/input/events.c | |
parent | dae74057b3b81b5c9b7646b9c09b4549f4e35740 (diff) |
Keep windows in bounds on move to position mouse
If the mouse/cursor/pointer is near the edge of an output when a "move
position to pointer" command is run, then the floating container will be
constrained to fit inside the bounds of the output as much as possible.
This behavior matches what i3 does in this scenario. I also think it is
a better user experience.
Relates to #4906
The logic for the bounds check follows the implementation in i3: https://github.com/i3/i3/blob/733077822302d8b77eacb606a26fd002a42f534f/src/floating.c#L536
Diffstat (limited to 'sway/commands/input/events.c')
0 files changed, 0 insertions, 0 deletions