forked from mirror/dwl
use the new scene helper for drag icons
This commit is contained in:
parent
359e7edc52
commit
5eb3529275
1 changed files with 1 additions and 3 deletions
4
dwl.c
4
dwl.c
|
@ -990,8 +990,6 @@ cursorframe(struct wl_listener *listener, void *data)
|
||||||
void
|
void
|
||||||
destroydragicon(struct wl_listener *listener, void *data)
|
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. */
|
/* Focus enter isn't sent during drag, so refocus the focused node. */
|
||||||
focusclient(selclient(), 1);
|
focusclient(selclient(), 1);
|
||||||
motionnotify(0);
|
motionnotify(0);
|
||||||
|
@ -2148,7 +2146,7 @@ startdrag(struct wl_listener *listener, void *data)
|
||||||
if (!drag->icon)
|
if (!drag->icon)
|
||||||
return;
|
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);
|
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