fix(gamepad): exit fullscreen on disconnect only if auto-fullscreen enabled and fullscreen disabled

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-10-09 20:59:51 +05:00
parent 9452bfda2e
commit 657d7728a6

View File

@@ -1336,7 +1336,7 @@ class InputManager(QObject):
self.gamepad = None
if self.gamepad_thread:
self.gamepad_thread.join()
# Signal to exit fullscreen mode
if read_auto_fullscreen_gamepad() and not read_fullscreen_config():
self.toggle_fullscreen.emit(False)
except Exception as e:
logger.error(f"Error handling udev event: {e}", exc_info=True)