Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git
Seat: apply mappings in attachDevice()
This ensures existing output/rectangle mappings are applied when moving
an input device between seats.
river/Seat.zig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/river/Seat.zig b/river/Seat.zig
index 2875d85..dab563d 100644
--- a/river/Seat.zig
+++ b/river/Seat.zig
@@ -808,6 +808,8 @@ pub fn attachDevice(seat: *Seat, device: *InputDevice) void {
},
.pointer, .touch, .tablet => {
seat.cursor.wlr_cursor.attachInputDevice(device.wlr_device);
+ seat.cursor.wlr_cursor.mapInputToOutput(device.wlr_device, device.config.map_to_output);
+ seat.cursor.wlr_cursor.mapInputToRegion(device.wlr_device, &device.config.map_to_rectangle);
},
.@"switch", .tablet_pad => unreachable, // unsupported
}