wake_up() call from init_notification to onNotify

This commit is contained in:
Sascha Kruse 2013-02-19 01:31:17 +00:00
parent e15d918a3c
commit 1ac31d9397
3 changed files with 2 additions and 1 deletions

View File

@ -1271,7 +1271,6 @@ int init_notification(notification * n, int id)
if (print_notifications) if (print_notifications)
print_notification(n); print_notification(n);
wake_up();
return n->id; return n->id;
} }

View File

@ -105,5 +105,6 @@ int close_notification(notification * n, int reason);
int close_notification_by_id(int id, int reason); int close_notification_by_id(int id, int reason);
void map_win(void); void map_win(void);
gboolean run(void *data); gboolean run(void *data);
void wake_up(void);
/* vim: set ts=8 sw=8 tw=0: */ /* vim: set ts=8 sw=8 tw=0: */

View File

@ -231,6 +231,7 @@ static void onNotify(GDBusConnection *connection,
n->color_strings[ColBG] = bgcolor; n->color_strings[ColBG] = bgcolor;
int id = init_notification(n, replaces_id); int id = init_notification(n, replaces_id);
wake_up();
GVariant *reply = g_variant_new ("(u)", id); GVariant *reply = g_variant_new ("(u)", id);
g_dbus_method_invocation_return_value(invocation, reply); g_dbus_method_invocation_return_value(invocation, reply);