mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[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:
parent
2dc806cff5
commit
792e4982e4
1 changed files with 6 additions and 0 deletions
|
@ -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[] = {
|
||||
|
|
Loading…
Reference in a new issue