aboutsummaryrefslogtreecommitdiff
path: root/common/ipc-client.c
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2020-01-21 01:32:22 -0700
committerFurkan Sahin <furkan-dev@proton.me>2020-01-21 01:32:22 -0700
commitab416793668e45234d0e155dc85fc4b34867dd04 (patch)
treef3fe67513a7b4d574039d7f1b55b0cffc4cf673f /common/ipc-client.c
parentc431cdb8651dd6ad2f2745fe4aae02a941c0502c (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 'common/ipc-client.c')
0 files changed, 0 insertions, 0 deletions