cursor: fix motion coords sent in down mode
We need to subtract the coords of the actual surface as they may not alingn with the current box if using CSD.
This commit is contained in:
parent
4be1d59861
commit
055fba5c3c
@ -478,8 +478,8 @@ fn processMotion(self: *Self, device: *wlr.InputDevice, time: u32, delta_x: f64,
|
|||||||
self.wlr_cursor.move(device, delta_x, delta_y);
|
self.wlr_cursor.move(device, delta_x, delta_y);
|
||||||
self.seat.wlr_seat.pointerNotifyMotion(
|
self.seat.wlr_seat.pointerNotifyMotion(
|
||||||
time,
|
time,
|
||||||
self.wlr_cursor.x - @intToFloat(f64, view.current.box.x),
|
self.wlr_cursor.x - @intToFloat(f64, view.current.box.x - view.surface_box.x),
|
||||||
self.wlr_cursor.y - @intToFloat(f64, view.current.box.y),
|
self.wlr_cursor.y - @intToFloat(f64, view.current.box.y - view.surface_box.y),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
.move => |view| {
|
.move => |view| {
|
||||||
|
Loading…
Reference in New Issue
Block a user