]> git.mdlowis.com Git - proto/labwc.git/commit
interactive: Make window snapping with mouse more intuitive
authortokyo4j <hrak1529@gmail.com>
Tue, 7 Nov 2023 05:43:53 +0000 (14:43 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 10 Nov 2023 19:41:36 +0000 (19:41 +0000)
commit9a8a2905adfedb62933e2c782309f79346c6f560
tree94124edd0b03629d98b523cffcf24e996c3ff6a5
parent29a228674bc47720fc0a0e35fbb478d1cae8b66d
interactive: Make window snapping with mouse more intuitive

1. Prevent window snapping triggered by mouse from moving the window
 into the adjacent output.
2. Make the coordinates used to check whether window snapping is
 triggered relative to the output the cursor is at, not the output the
 view is belonging to. This allows users to grab a tiled window and move
 it into another output or tile it again in another output in a single
 drag.
include/view.h
src/action.c
src/interactive.c
src/view.c