From 42c0ff29c5af165f03f1ea9c588ef9a52a8200f4 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Thu, 28 Feb 2013 00:39:23 +0100 Subject: Show always a notification if it has 'expires never' as timeout Without check if there is active screensaver or fullscreen window --- src/daemon/daemon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/daemon/daemon.c') diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 778860a..ec3ddf5 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -1558,7 +1558,10 @@ gboolean notify_daemon_notify_handler(NotifyDaemon* daemon, const char* app_name sync_notification_position (daemon, nw, window_xid); } - if (!screensaver_active (GTK_WIDGET (nw)) && !fullscreen_window_exists (GTK_WIDGET (nw))) + /* If there is no timeout, show the notification also if screensaver + * is active or there are fullscreen windows + */ + if (!nt->has_timeout || (!screensaver_active (GTK_WIDGET (nw)) && !fullscreen_window_exists (GTK_WIDGET (nw)))) { theme_show_notification (nw); -- cgit v1.2.1