mirror of
https://github.com/labwc/labwc.git
synced 2026-03-14 05:33:52 -04:00
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.
This commit is contained in:
parent
67669dcf1e
commit
5cc0757390
16 changed files with 361 additions and 152 deletions
|
|
@ -99,6 +99,9 @@
|
|||
<snapping>
|
||||
<!-- Set range to 0 to disable window snapping completely -->
|
||||
<range>1</range>
|
||||
<preview enabled="yes">
|
||||
<delay inner="500" outer="500" />
|
||||
</preview>
|
||||
<topMaximize>yes</topMaximize>
|
||||
<notifyClient>always</notifyClient>
|
||||
</snapping>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue