]> git.mdlowis.com Git - proto/labwc.git/commit
overlay: add snap-to-edge overlay (PR #1652)
authorHiroaki Yamamoto <hrak1529@gmail.com>
Fri, 5 Apr 2024 02:35:31 +0000 (11:35 +0900)
committerGitHub <noreply@github.com>
Fri, 5 Apr 2024 02:35:31 +0000 (04:35 +0200)
commit5cc075739036107363f828642b026736824ba96d
treea6975d9638ca5644fa7f51f01ab610aaf43b24cc
parent67669dcf1e7dcc6536d02cd007c8f10aa93a7279
overlay: add snap-to-edge overlay (PR #1652)

...and unify region overlay and snap-to-edge overlay into overlay.c.

Snap-to-edge overlay is delayed for 500ms to prevent flickering when
the view is dragged from an output to another (demo in discussion labwc#1613).

This also fixes a bug that region overlay is not shown when a modifier
key is re-pressed.
16 files changed:
docs/labwc-config.5.scd
docs/rc.xml.all
include/config/rcxml.h
include/labwc.h
include/overlay.h [new file with mode: 0644]
include/regions.h
src/config/rcxml.c
src/debug.c
src/input/cursor.c
src/input/keyboard.c
src/interactive.c
src/meson.build
src/output.c
src/overlay.c [new file with mode: 0644]
src/regions.c
src/view.c