From 1ac31d9397173a67860c4cd5eeb47ee666bcf54e Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Tue, 19 Feb 2013 01:31:17 +0000 Subject: [PATCH] wake_up() call from init_notification to onNotify --- dunst.c | 1 - dunst.h | 1 + dunst_dbus.c | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dunst.c b/dunst.c index efd2c42..7e97077 100644 --- a/dunst.c +++ b/dunst.c @@ -1271,7 +1271,6 @@ int init_notification(notification * n, int id) if (print_notifications) print_notification(n); - wake_up(); return n->id; } diff --git a/dunst.h b/dunst.h index 411f752..bbd9b34 100644 --- a/dunst.h +++ b/dunst.h @@ -105,5 +105,6 @@ int close_notification(notification * n, int reason); int close_notification_by_id(int id, int reason); void map_win(void); gboolean run(void *data); +void wake_up(void); /* vim: set ts=8 sw=8 tw=0: */ diff --git a/dunst_dbus.c b/dunst_dbus.c index 43965dc..5fc5be6 100644 --- a/dunst_dbus.c +++ b/dunst_dbus.c @@ -231,6 +231,7 @@ static void onNotify(GDBusConnection *connection, n->color_strings[ColBG] = bgcolor; int id = init_notification(n, replaces_id); + wake_up(); GVariant *reply = g_variant_new ("(u)", id); g_dbus_method_invocation_return_value(invocation, reply);