Revert minor

This commit is contained in:
dec05eba
2025-12-25 08:28:17 +01:00
parent 8032cb2cf0
commit fd5026489c

View File

@@ -195,7 +195,7 @@ static void keyboard_event_process_input_event_data(keyboard_event *self, event_
}
if(extra_data->gsr_ui_virtual_keyboard) {
if(event.type == EV_KEY)
if(event.type == EV_KEY || event.type == EV_MSC)
self->check_grab_lock = false;
return;
}
@@ -233,7 +233,7 @@ static void keyboard_event_process_input_event_data(keyboard_event *self, event_
}
if(extra_data->grabbed) {
if(prev_grabbed && !self->check_grab_lock && event.type == EV_KEY) {
if(prev_grabbed && !self->check_grab_lock && (event.type == EV_KEY || event.type == EV_MSC)) {
self->uinput_written_time_seconds = clock_get_monotonic_seconds();
self->check_grab_lock = true;
}