opt: tell the synckeymap timer not need to call anymore

This commit is contained in:
DreamMaoMao 2026-02-11 08:31:22 +08:00
parent 783cb86c56
commit b5a157038c

View file

@ -6058,8 +6058,9 @@ void virtualpointer(struct wl_listener *listener, void *data) {
int32_t synckeymap(void *data) {
reset_keyboard_layout();
// we only need to sync keymap once
wlr_log(WLR_INFO, "timer to synckeymap done");
wl_event_source_timer_update(sync_keymap, 0);
return 1;
return 0;
}
void activatex11(struct wl_listener *listener, void *data) {