set x cursor type in lua

This commit is contained in:
Harrison DiAmbrosio 2026-01-07 21:43:49 -05:00
parent 42204bc4d2
commit 22e3553580
3 changed files with 23 additions and 3 deletions

View file

@ -78,7 +78,7 @@ pub fn deinit(self: *Cursor) void {
}
pub fn processCursorMotion(self: *Cursor, time_msec: u32) void {
self.wlr_cursor.setXcursor(self.x_cursor_manager, "default");
// TODO: allow acces via lua
var handled = false;
@ -129,6 +129,7 @@ pub fn processCursorMotion(self: *Cursor, time_msec: u32) void {
} else {
// This may not be necessary, remove if no bugs
server.seat.wlr_seat.pointerClearFocus();
self.wlr_cursor.setXcursor(self.x_cursor_manager, "default");
}
}
}