diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-11-15 23:07:21 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-11-15 23:07:21 -0600 |
commit | 5eb352927575bd45c75d6d7f5e3f7a6e3499a85f (patch) | |
tree | f0d9eaba37905a3da0efc565c9a86616c0f88801 | |
parent | 359e7edc52c38a0eb1bbc33aa238561efaf28d58 (diff) |
use the new scene helper for drag icons
-rw-r--r-- | dwl.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -990,8 +990,6 @@ cursorframe(struct wl_listener *listener, void *data) void destroydragicon(struct wl_listener *listener, void *data) { - struct wlr_drag_icon *icon = data; - wlr_scene_node_destroy(icon->data); /* Focus enter isn't sent during drag, so refocus the focused node. */ focusclient(selclient(), 1); motionnotify(0); @@ -2148,7 +2146,7 @@ startdrag(struct wl_listener *listener, void *data) if (!drag->icon) return; - drag->icon->data = wlr_scene_subsurface_tree_create(layers[LyrDragIcon], drag->icon->surface); + drag->icon->data = wlr_scene_drag_icon_create(layers[LyrDragIcon], drag->icon); motionnotify(0); wl_signal_add(&drag->icon->events.destroy, &drag_icon_destroy); } |