Skip to content

Commit 068e4e9

Browse files
committed
fixup! feat(conf): Add default_pause_level for setting a default pause level
1 parent f61eccc commit 068e4e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/dunst.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ int dunst_main(int argc, char *argv[])
302302
guint term_src = g_unix_signal_add(SIGTERM, quit_signal, NULL);
303303
guint int_src = g_unix_signal_add(SIGINT, quit_signal, NULL);
304304

305-
dunst_status_int(S_PAUSE_LEVEL, settings.default_pause_level);
306305

307306
if (startup_notification) {
308307
struct notification *n = notification_create();
@@ -321,6 +320,11 @@ int dunst_main(int argc, char *argv[])
321320

322321
setup_done = true;
323322
run(GINT_TO_POINTER(DUNST_TIMER)); // The first run() is a scheduled one
323+
324+
325+
// Set default_pause_level only after showing the startup notification
326+
dunst_status_int(S_PAUSE_LEVEL, settings.default_pause_level);
327+
324328
g_main_loop_run(mainloop);
325329
g_clear_pointer(&mainloop, g_main_loop_unref);
326330

0 commit comments

Comments
 (0)