Commit graph

2 commits

Author SHA1 Message Date
tokyo4j
5b1a03ae69 [fixup] cache previous state & some refactoring 2024-03-29 15:23:38 +09:00
tokyo4j
0b2d58ffc5 overlay: add snap-to-edge overlay
...and unifies region overlay and snap-to-edge overlay into overlay.c.

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

This also fixes a bug that region overlay is not shown when a modifier
key is re-pressed.
2024-03-29 15:23:38 +09:00