From c4c172ab5e3cd92b828855a71960c15cae3c49d1 Mon Sep 17 00:00:00 2001 From: deltragon Date: Wed, 24 Jan 2024 18:56:16 +0100 Subject: [PATCH] lock keyboard on wayland --- safeeyes/ui/break_screen.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/safeeyes/ui/break_screen.py b/safeeyes/ui/break_screen.py index 4dd55cdb..d60db07b 100644 --- a/safeeyes/ui/break_screen.py +++ b/safeeyes/ui/break_screen.py @@ -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):