Remove unused icon variable
This commit is contained in:
parent
831fc36bc9
commit
4b15bbeb33
4
dwl.c
4
dwl.c
|
@ -2334,12 +2334,10 @@ void
|
||||||
startdrag(struct wl_listener *listener, void *data)
|
startdrag(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
struct wlr_drag *drag = data;
|
struct wlr_drag *drag = data;
|
||||||
struct wlr_scene_tree *icon;
|
|
||||||
|
|
||||||
if (!drag->icon)
|
if (!drag->icon)
|
||||||
return;
|
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);
|
motionnotify(0);
|
||||||
wl_signal_add(&drag->icon->events.destroy, &drag_icon_destroy);
|
wl_signal_add(&drag->icon->events.destroy, &drag_icon_destroy);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue