diff options
| author | Isaac Freund <mail@isaacfreund.com> | 2023-03-05 09:44:14 +0100 |
|---|---|---|
| committer | Isaac Freund <mail@isaacfreund.com> | 2023-03-05 09:44:14 +0100 |
| commit | db726718efb9e4ef7c441efeb4aafe967aeff1b5 (patch) | |
| tree | 4512d1910d1d4aceed677b4b5eaa461d76082d73 | |
| parent | cc2b38af927a7463a6b08a99676c67c62b7c1159 (diff) | |
| download | river-db726718efb9e4ef7c441efeb4aafe967aeff1b5.tar.gz river-db726718efb9e4ef7c441efeb4aafe967aeff1b5.tar.xz | |
Cursor: use pending position to warp during move
| -rw-r--r-- | river/Cursor.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/river/Cursor.zig b/river/Cursor.zig index 82768ec..5ac6076 100644 --- a/river/Cursor.zig +++ b/river/Cursor.zig @@ -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(); |
