mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
[fixup] cancel timer in show_overlay()
This commit is contained in:
parent
93bc17a99a
commit
39d941df3c
1 changed files with 4 additions and 3 deletions
|
|
@ -58,6 +58,10 @@ show_overlay(struct seat *seat, struct wlr_box *box)
|
||||||
}
|
}
|
||||||
wlr_scene_node_set_position(node, box->x, box->y);
|
wlr_scene_node_set_position(node, box->x, box->y);
|
||||||
wlr_scene_node_set_enabled(node, true);
|
wlr_scene_node_set_enabled(node, true);
|
||||||
|
|
||||||
|
if (seat->overlay.timer) {
|
||||||
|
wl_event_source_timer_update(seat->overlay.timer, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
@ -69,9 +73,6 @@ show_region_overlay(struct seat *seat, struct region *region)
|
||||||
seat->overlay.active.region = region;
|
seat->overlay.active.region = region;
|
||||||
seat->overlay.active.edge = VIEW_EDGE_INVALID;
|
seat->overlay.active.edge = VIEW_EDGE_INVALID;
|
||||||
seat->overlay.active.output = NULL;
|
seat->overlay.active.output = NULL;
|
||||||
if (seat->overlay.timer) {
|
|
||||||
wl_event_source_timer_update(seat->overlay.timer, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
show_overlay(seat, ®ion->geo);
|
show_overlay(seat, ®ion->geo);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue