Cursor: use pending position to warp during move

This commit is contained in:
Isaac Freund 2023-03-05 09:44:14 +01:00
parent cc2b38af92
commit db726718ef
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -830,8 +830,8 @@ fn processMotion(self: *Self, device: *wlr.InputDevice, time: u32, delta_x: f64,
self.wlr_cursor.warpClosest(
device,
@intToFloat(f64, data.offset_x + view.current.box.x),
@intToFloat(f64, data.offset_y + view.current.box.y),
@intToFloat(f64, data.offset_x + view.pending.box.x),
@intToFloat(f64, data.offset_y + view.pending.box.y),
);
server.root.applyPending();