]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Chase wlroots: wlr_surface refactor
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 24 Jan 2023 02:32:45 +0000 (03:32 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 27 Nov 2023 21:01:53 +0000 (21:01 +0000)
Chases 258bf9be1e44d8a2fb953d727ff4ffcf9ebd6503
compositor: drop wlr_surface.{sx,sy}

src/dnd.c
subprojects/wlroots.wrap

index 7d62ca70a888f385e3b203c7f6fc2834ade3129b..e69a85483bbfb26417e9da4f96d53a95cae3684d 100644 (file)
--- a/src/dnd.c
+++ b/src/dnd.c
@@ -32,7 +32,8 @@ handle_surface_commit(struct wl_listener *listener, void *data)
        struct wlr_scene_tree *surface_tree = self->icon->data;
        if (surface_tree) {
                wlr_scene_node_set_position(&surface_tree->node,
-                       surface->sx, surface->sy);
+                       surface_tree->node.x + surface->current.dx,
+                       surface_tree->node.y + surface->current.dy);
        }
 }
 
index bbd05642e9c263faa9d0f5ae5d76fa9d948be143..a767d44216af6488d643267a5175060b228c2685 100644 (file)
@@ -1,6 +1,6 @@
 [wrap-git]
 url = https://gitlab.freedesktop.org/wlroots/wlroots.git
-revision = 9f793d350379872aeee56ea5c476adfeedc8bc88
+revision = 258bf9be1e44d8a2fb953d727ff4ffcf9ebd6503
 
 [provide]
 dependency_names = wlroots