Skip to content

Commit

Permalink
fix(gui): enable workaround for setFullScreen() for all wayland DEs
Browse files Browse the repository at this point in the history
  • Loading branch information
dynobo committed May 19, 2024
1 parent 23cc347 commit d69b1e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion normcap/gui/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d69b1e3

Please sign in to comment.