From 1648ab53d0c898d29ccc52a59ebe2e2cdce8ffd5 Mon Sep 17 00:00:00 2001 From: deltragon Date: Wed, 2 Oct 2024 13:46:47 +0200 Subject: [PATCH] donotdisturb: fix changing interruptible fullscreen windows to normal mode this appears to have been a typo in 6e07de7c2258a98dcb31c6c33ce31cab2a9edecb, after which the `pre_break` param always was `False`. Restore the previous behaviour for Xorg. --- safeeyes/plugins/donotdisturb/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/safeeyes/plugins/donotdisturb/plugin.py b/safeeyes/plugins/donotdisturb/plugin.py index 0fdefa5c..a9b0cf5c 100644 --- a/safeeyes/plugins/donotdisturb/plugin.py +++ b/safeeyes/plugins/donotdisturb/plugin.py @@ -194,9 +194,9 @@ def on_start_break(break_obj): if utility.DESKTOP_ENVIRONMENT == 'gnome': skip_break = is_idle_inhibited_gnome() else: - skip_break = is_active_window_skipped_wayland(True) + skip_break = is_active_window_skipped_wayland(False) else: - skip_break = is_active_window_skipped_xorg(True) + skip_break = is_active_window_skipped_xorg(False) if dnd_while_on_battery and not skip_break: skip_break = is_on_battery() return skip_break