swayfx/sway
Thayne McCombs cfa403fc58 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: 7330778223/src/floating.c (L536)
2020-07-27 11:27:47 +02:00
..
commands Keep windows in bounds on move to position mouse 2020-07-27 11:27:47 +02:00
config config/output: don't change output state before commit 2020-07-10 18:18:27 -04:00
desktop Fix X11 clients getting stuck minimized 2020-07-22 18:50:57 -04:00
input input/cursor: don't send wl_pointer.motion event on pointer unlock warp 2020-07-15 19:40:09 +02:00
tree view: display scratchpad hidden containers when activated by ftm 2020-07-25 11:53:01 -04:00
commands.c commands: disallow runtime include 2020-07-27 10:54:04 +02:00
config.c Reload command now matches i3's implementation 2020-07-07 17:15:57 -04:00
criteria.c Introduce pid criteria token 2020-02-27 14:03:22 +01:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c i3-compat: add GET_BINDING_STATE IPC command 2020-06-14 00:55:14 -04:00
ipc-server.c i3-compat: add GET_BINDING_STATE IPC command 2020-06-14 00:55:14 -04:00
main.c Log Sway version on startup 2020-06-11 08:44:09 -06:00
meson.build Remove code related to the security features 2020-05-21 10:57:00 +02:00
server.c Unset DISPLAY when wlr_xwayland fails 2020-07-02 23:55:56 -04:00
sway-bar.5.scd swaybar: complete barconfig_update event handling 2019-09-04 16:48:50 -10:00
sway-input.5.scd fix typos in sway-input.5.scd 2020-04-29 12:43:34 +02:00
sway-ipc.7.scd i3-compat: add GET_BINDING_STATE IPC command 2020-06-14 00:55:14 -04:00
sway-output.5.scd Simplify repaint scheduling documentation 2020-05-11 10:36:33 +02:00
sway.1.scd add dots to man 2020-04-14 10:10:35 +02:00
sway.5.scd Fix typos in man page. 2020-07-21 17:45:09 +02:00
swaynag.c Rename symbol set_cloexec to sway_set_cloexec, remove duplicates. 2019-11-01 12:41:08 -04:00
xdg_decoration.c Fix xdg-decoration unconfigured if set before first commit 2019-05-03 15:37:32 -06:00