Add option to disable mouse input

This commit is contained in:
hexnet1234 2026-03-09 19:18:33 +01:00
parent dcd64ae48b
commit 58cc8551f8
3 changed files with 7 additions and 2 deletions

2
seat.c
View file

@ -118,7 +118,7 @@ update_capabilities(struct cg_seat *seat)
if (!wl_list_empty(&seat->keyboard_groups)) {
caps |= WL_SEAT_CAPABILITY_KEYBOARD;
}
if (!wl_list_empty(&seat->pointers)) {
if (!wl_list_empty(&seat->pointers) && !seat->server->disable_mouse) {
caps |= WL_SEAT_CAPABILITY_POINTER;
}
if (!wl_list_empty(&seat->touch)) {