[qwaq] Send app focus event on startup

Terminal apps effectively always have focus (unless I find a way to know
when an xterm loses/gains focus). Fixes input-app not updating on evdev
events.
This commit is contained in:
Bill Currie 2022-01-21 00:44:04 +09:00
parent 2dc806cff5
commit 792e4982e4

View file

@ -860,6 +860,12 @@ bi_init_input (progs_t *pr)
qwaq_input_init (res);
res->initialized = 1;
create_thread (qwaq_input_thread, res);
IE_event_t event = {
.type = ie_app_gain_focus,
.when = Sys_LongTime (),
};
IE_Send_Event (&event);
}
static builtin_t builtins[] = {