DragIcon: set position on creation
Currently if a drag icon is created but the cursor/touch point is not moved river will render the drag icon at 0,0 instead of the cursor/touch point location. This fixes that.
This commit is contained in:
@ -555,7 +555,7 @@ fn handleStartDrag(listener: *wl.Listener(*wlr.Drag), wlr_drag: *wlr.Drag) void
|
||||
wlr_drag.events.destroy.add(&self.drag_destroy);
|
||||
|
||||
if (wlr_drag.icon) |wlr_drag_icon| {
|
||||
DragIcon.create(wlr_drag_icon) catch {
|
||||
DragIcon.create(wlr_drag_icon, &self.cursor) catch {
|
||||
log.err("out of memory", .{});
|
||||
wlr_drag.seat_client.client.postNoMemory();
|
||||
return;
|
||||
|
Reference in New Issue
Block a user