input: ignore mouse handler events until initialized

And revert the now obsolete reload requests
This commit is contained in:
Megamouse 2024-08-08 19:06:05 +02:00
parent bc23615508
commit 60b90075ac
2 changed files with 12 additions and 4 deletions

View file

@ -25,8 +25,6 @@ void basic_mouse_handler::Init(const u32 max_connect)
input_log.notice("basic_mouse_handler: Could not load basic mouse config. Using defaults.");
}
g_cfg_mouse.reload_requested = true;
reload_config();
m_mice.clear();
@ -82,6 +80,12 @@ void basic_mouse_handler::SetTargetWindow(QWindow* target)
bool basic_mouse_handler::eventFilter(QObject* target, QEvent* ev)
{
if (m_info.max_connect == 0)
{
// Not initialized
return false;
}
if (!ev)
{
return false;