Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion safeeyes/ui/break_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,14 @@ def __show_break_screen(
# Fix flickering screen in KDE by setting opacity to 1
window.set_opacity(0.9)

window.fullscreen_on_monitor(monitor)
window.present()

# Apparently this needs to run after present() (as of GTK 4.20)
# On Wayland, either work seems to work fine
# On X11, calling this before present() always fullscreens only on the
# focused monitor regardless
window.fullscreen_on_monitor(monitor)

# this ensures that none of the buttons is in focus immediately
# otherwise, pressing space presses that button instead of triggering the
# shortcut
Expand Down