mirror of
https://github.com/labwc/labwc.git
synced 2026-04-13 08:21:15 -04:00
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.
This commit is contained in:
parent
d68376f2ac
commit
0b2d58ffc5
11 changed files with 260 additions and 150 deletions
|
|
@ -2223,7 +2223,7 @@ view_destroy(struct view *view)
|
|||
/* Application got killed while moving around */
|
||||
server->input_mode = LAB_INPUT_STATE_PASSTHROUGH;
|
||||
server->grabbed_view = NULL;
|
||||
regions_hide_overlay(&server->seat);
|
||||
overlay_hide(&server->seat);
|
||||
}
|
||||
|
||||
if (server->active_view == view) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue