]> git.mdlowis.com Git - proto/labwc.git/commit
Add snap to window edge framework
authorAxel Burri <axel@tty0.ch>
Sat, 5 Aug 2023 21:53:01 +0000 (23:53 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 19 Oct 2023 18:09:42 +0000 (19:09 +0100)
commit1d72a08916c8c6adfbb30829fffeeb228f755ce7
treee4e6cc02a78a1e15b91a82ddc5c5bdcd13627ff7
parent5176ac4f645d3c51976a71b75c95091d0cc48031
Add snap to window edge framework

Adds functions for calculation of distances between window edges, as
well as for window growing and shrinking.

All calculations are based on the "pending" geometry.

Ignored from snapping:

 - views that do not share the same output
 - minimized views
 - maximized views
 - views that are neither:
   - part of the current workspace
   - part of the always-on-top tree
include/snap.h [new file with mode: 0644]
src/meson.build
src/snap.c [new file with mode: 0644]