diff options
Diffstat (limited to 'src/notification.c')
-rw-r--r-- | src/notification.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/notification.c b/src/notification.c index a4355a1e..3169a994 100644 --- a/src/notification.c +++ b/src/notification.c @@ -323,6 +323,7 @@ zenity_notification (ZenityData *data, ZenityNotificationData *notification_data if (notification_data->listen) { zenity_notification_listen_on_stdin (data); + gtk_main(); } else { if (notification_data->notification_text == NULL) { exit (1); @@ -362,9 +363,8 @@ zenity_notification (ZenityData *data, ZenityNotificationData *notification_data if (data->timeout_delay > 0) { g_timeout_add_seconds (data->timeout_delay, (GSourceFunc) zenity_util_timeout_handle, NULL); + gtk_main(); } - - gtk_main (); } #endif |