This commit is contained in:
deltragon 2024-11-22 07:15:03 +00:00 committed by GitHub
commit 8f8691f461
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -194,9 +194,9 @@ def on_start_break(break_obj):
if utility.DESKTOP_ENVIRONMENT == 'gnome': if utility.DESKTOP_ENVIRONMENT == 'gnome':
skip_break = is_idle_inhibited_gnome() skip_break = is_idle_inhibited_gnome()
else: else:
skip_break = is_active_window_skipped_wayland(True) skip_break = is_active_window_skipped_wayland(False)
else: 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: if dnd_while_on_battery and not skip_break:
skip_break = is_on_battery() skip_break = is_on_battery()
return skip_break return skip_break