mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -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
|
|
@ -125,6 +125,9 @@ struct rcxml {
|
|||
|
||||
/* window snapping */
|
||||
int snap_edge_range;
|
||||
bool snap_preview_enabled;
|
||||
int snap_preview_delay_inner;
|
||||
int snap_preview_delay_outer;
|
||||
bool snap_top_maximize;
|
||||
enum tiling_events_mode snap_tiling_events_mode;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue