mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
update drag position at the right times
This commit is contained in:
parent
9333acd68e
commit
7c888a39c6
2 changed files with 5 additions and 2 deletions
|
|
@ -100,12 +100,12 @@ static void drag_set_focus(struct wlr_drag *drag,
|
|||
|
||||
static void drag_icon_set_mapped(struct wlr_drag_icon *icon, bool mapped) {
|
||||
if (mapped && !icon->mapped) {
|
||||
icon->mapped = true;
|
||||
wlr_signal_emit_safe(&icon->events.map, icon);
|
||||
} else if (!mapped && icon->mapped) {
|
||||
icon->mapped = false;
|
||||
wlr_signal_emit_safe(&icon->events.unmap, icon);
|
||||
}
|
||||
|
||||
icon->mapped = mapped;
|
||||
}
|
||||
|
||||
static void drag_end(struct wlr_drag *drag) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue