summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-11-15 23:07:45 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-11-15 23:07:45 -0600
commitdae00caaddee6d14cb566ee750c976543788d5fe (patch)
tree820b64f38bef9f10694812616f819fc970e7a670
parent5eb352927575bd45c75d6d7f5e3f7a6e3499a85f (diff)
update for wlroots!3861
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3861
-rw-r--r--dwl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index d8cee36..386763a 100644
--- a/dwl.c
+++ b/dwl.c
@@ -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. */