summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-02-28 00:39:23 +0100
committerStefano Karapetsas <[email protected]>2013-02-28 00:39:23 +0100
commit42c0ff29c5af165f03f1ea9c588ef9a52a8200f4 (patch)
tree9ef5c54a11feda801e3903d780c87056b29c88fc
parent31058eaf24136226041fca54c1de4c8e73092161 (diff)
downloadmate-notification-daemon-42c0ff29c5af165f03f1ea9c588ef9a52a8200f4.tar.bz2
mate-notification-daemon-42c0ff29c5af165f03f1ea9c588ef9a52a8200f4.tar.xz
Show always a notification if it has 'expires never' as timeout
Without check if there is active screensaver or fullscreen window
-rw-r--r--src/daemon/daemon.c5
1 files changed, 4 insertions, 1 deletions
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);