Skip to content

Commit

Permalink
lock keyboard on wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
deltragon committed Jan 24, 2024
1 parent 394028c commit c4c172a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions safeeyes/ui/break_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ def __show_break_screen(self, message, image_path, widget, tray_actions):
window.fullscreen_on_monitor(monitor)
window.present()

if self.context['is_wayland']:
# this may or may not be granted by the window system
window.get_surface().inhibit_system_shortcuts(None)

i = i + 1

def __update_count_down(self, count):
Expand Down

0 comments on commit c4c172a

Please sign in to comment.