]> git.mdlowis.com Git - proto/labwc.git/commit
interactive: allow moving horizontally/vertically maximized window
authortokyo4j <hrak1529@gmail.com>
Wed, 7 Aug 2024 00:17:25 +0000 (09:17 +0900)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 26 Aug 2024 18:30:22 +0000 (20:30 +0200)
commit1f1bdad0873561d32c39674f5808931ef8880bec
treebd721da868c77ef9e840bc0d6bf73ba4b5c85b37
parent2e19bd4d5b3c67c27d13be24d41a0ea9ba2f1626
interactive: allow moving horizontally/vertically maximized window

Applies drag resistance unidirectionally for horizontally/vertically
maximized windows, allowing them to be dragged without being untiled
immediately. When the distance of cursor movement orthogonal to the
maximized direction exceeds <resistance><unMaximizeThreshold>.

While dragging a horizontally/vertically maximized window, edge/region
snapping is disabled to prevent unintentional snapping and overlays.

This commit also includes some refactoring to simplify the logic.
docs/labwc-config.5.scd
docs/rc.xml.all
include/config/rcxml.h
include/labwc.h
include/resistance.h
src/config/rcxml.c
src/input/cursor.c
src/interactive.c
src/regions.c
src/resistance.c
src/xdg.c