fix: Prevent fullscreen toggle on 'Select' button press during game launch

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-09-08 18:45:30 +05:00
parent c39f5ad83b
commit 4d4e14ea52

View File

@@ -1085,7 +1085,9 @@ class InputManager(QObject):
now = time.time()
if event.type == ecodes.EV_KEY and event.value == 1:
if event.code in BUTTONS['menu'] and not self._is_gamescope_session:
self.toggle_fullscreen.emit(not self._is_fullscreen)
# Проверяем, не запущена ли игра
if not getattr(self._parent, '_gameLaunched', False):
self.toggle_fullscreen.emit(not self._is_fullscreen)
else:
self.button_pressed.emit(event.code)
elif event.type == ecodes.EV_ABS: