mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-08 13:29:45 -05:00
data-device: fix drag icon position
This commit is contained in:
parent
b7c622a319
commit
c00a94ca76
3 changed files with 8 additions and 4 deletions
|
|
@ -313,6 +313,9 @@ static void handle_drag_icon_commit(struct wl_listener *listener, void *data) {
|
|||
// TODO the spec hints at rules that can determine whether the drag icon is
|
||||
// mapped here, but it is not completely clear so we need to test more
|
||||
// toolkits to see how we should interpret the surface state here.
|
||||
drag_icon->sx += drag_icon->surface->current->sx;
|
||||
drag_icon->sy += drag_icon->surface->current->sy;
|
||||
|
||||
drag_icon->mapped = drag_icon->surface->texture->valid;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue