From a29767224835cd04f0ae987b1f395a35d97b5975 Mon Sep 17 00:00:00 2001 From: Jules Date: Sat, 21 Mar 2026 21:49:38 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20kiosk=20mode=20=E2=80=94=20force=20plein?= =?UTF-8?q?=20=C3=A9cran=20sans=20WM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FramelessWindowHint + setGeometry(screen) pour fonctionner sans window manager (Xvfb, RPi kiosk). Co-Authored-By: Claude Opus 4.6 (1M context) --- src/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index e6d4491..41ffaf1 100644 --- a/src/main.py +++ b/src/main.py @@ -12,12 +12,15 @@ def main(): app.setApplicationName("Photostation") window = MainWindow() + window.setWindowFlags(Qt.WindowType.FramelessWindowHint) - # Mode kiosk si argument --kiosk if "--kiosk" in sys.argv: + # Plein écran : prend toute la résolution de l'écran + screen = app.primaryScreen().geometry() + window.setGeometry(screen) window.showFullScreen() else: - window.resize(1024, 600) + window.resize(1024, 768) window.show() sys.exit(app.exec())