From 6317d55ca8709d67987ff0c8bfa4fa69f901b033 Mon Sep 17 00:00:00 2001 From: dynobo Date: Sun, 19 May 2024 22:33:08 +0200 Subject: [PATCH] fix(gui): enable workaround for setFullScreen() for all wayland DEs --- CHANGELOG | 4 ++++ normcap/gui/window.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 56901059..f82669a5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,10 @@ # Changelog +## v0.5.8 (2024-05-19) + +- Linux: Next try to fix issue on Ubuntu/Unity where the window doesn't show up. ([#651](https://github.com/dynobo/normcap/pull/651)) + ## v0.5.7 (2024-05-18) - All: Add french translation. Thanks, [@NathanBnm](https://github.com/NathanBnm)! ([#648](https://github.com/dynobo/normcap/pull/648)) diff --git a/normcap/gui/window.py b/normcap/gui/window.py index 95844f78..c57bc749 100644 --- a/normcap/gui/window.py +++ b/normcap/gui/window.py @@ -162,7 +162,7 @@ def set_fullscreen(self) -> None: self.setMinimumSize(self.geometry().size()) self.setMaximumSize(self.geometry().size()) - if system_info.desktop_environment == DesktopEnvironment.UNITY: + if system_info.display_manager_is_wayland(): # For unknown reason .showFullScreen() on Ubuntu 24.04 does not show the # window. Showing the Window in normal state upfront seems to help. # (It seems like .setWindowState(WindowFullScreen) should not be set before