Draw the drag icon

This commit is contained in:
vaxerski
2022-03-31 17:25:23 +02:00
parent 2ca834479f
commit 3e614f2c1e
10 changed files with 133 additions and 2 deletions

View File

@@ -77,4 +77,23 @@ struct SXDGPopup {
struct SSeat {
wlr_seat* seat = nullptr;
wl_client* exclusiveClient = nullptr;
};
struct SDrag {
wlr_drag* drag = nullptr;
DYNLISTENER(destroy);
// Icon
bool iconMapped = false;
wlr_drag_icon* dragIcon = nullptr;
Vector2D pos;
DYNLISTENER(destroyIcon);
DYNLISTENER(mapIcon);
DYNLISTENER(unmapIcon);
DYNLISTENER(commitIcon);
};