aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2023-07-14 00:02:39 -0400
committerLeonardo Hernández <leohdz172@proton.me>2023-07-13 22:17:03 -0600
commit4b15bbeb33ba5409bc436ca44200b5605a73b344 (patch)
tree1095a108c6ac09270bdbb9cada92b6348fb09077 /dwl.c
parent831fc36bc91ac595340300ec5cef5e81f263c3b3 (diff)
Remove unused icon variable
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dwl.c b/dwl.c
index 190601e..96ffb64 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2334,12 +2334,10 @@ void
startdrag(struct wl_listener *listener, void *data)
{
struct wlr_drag *drag = data;
- struct wlr_scene_tree *icon;
-
if (!drag->icon)
return;
- drag->icon->data = icon = wlr_scene_subsurface_tree_create(drag_icon, drag->icon->surface);
+ drag->icon->data = &wlr_scene_subsurface_tree_create(drag_icon, drag->icon->surface)->node;
motionnotify(0);
wl_signal_add(&drag->icon->events.destroy, &drag_icon_destroy);
}