drag: use unified map logic

This commit is contained in:
Kirill Primak 2023-03-04 23:07:19 +03:00 committed by Isaac Freund
parent 743da5c0ae
commit af4181f388
3 changed files with 17 additions and 32 deletions

View file

@ -93,11 +93,8 @@ struct wlr_drag;
struct wlr_drag_icon {
struct wlr_drag *drag;
struct wlr_surface *surface;
bool mapped;
struct {
struct wl_signal map;
struct wl_signal unmap;
struct wl_signal destroy;
} events;