update for wlroots!3861

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3861
This commit is contained in:
Leonardo Hernández Hernández 2022-11-15 23:07:45 -06:00
parent 5eb3529275
commit dae00caadd
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

4
dwl.c
View File

@ -1439,8 +1439,8 @@ motionnotify(uint32_t time)
/* Update drag icon's position if any */
if (seat->drag && (icon = seat->drag->icon))
wlr_scene_node_set_position(icon->data, cursor->x + icon->surface->sx,
cursor->y + icon->surface->sy);
wlr_scene_node_set_position(icon->data, cursor->x + icon->surface->current.dx,
cursor->y + icon->surface->current.dy);
/* If we are currently grabbing the mouse, handle and return */
if (cursor_mode == CurMove) {
/* Move the grabbed client to the new position. */