Skip to content

Commit e9dd4e4

Browse files
committed
screen_manager: Don't parse menu events if console open
Conflicts with the scroll wheel to switch menu items feature. Signed-off-by: Swagtoy <me@ow.swag.toys>
1 parent 6e23b5d commit e9dd4e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/supertux/screen_manager.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ ScreenManager::process_events()
406406
}
407407
m_input_manager.process_event(event);
408408

409-
m_menu_manager->event(event);
410409

411410
#define LOGMOUSEY(var) VideoSystem::current()->get_viewport().to_logical(0, var).y
412411
// If the console is focused, try to funnel mouse events into that. Lisp
@@ -422,7 +421,10 @@ ScreenManager::process_events()
422421
Console::current()->scroll(-event.wheel.y * 2);
423422
}
424423
else
424+
{
425+
m_menu_manager->event(event);
425426
m_screen_stack.back()->event(event);
427+
}
426428
#undef LOGMOUSEY
427429

428430
switch (event.type)

0 commit comments

Comments
 (0)