diff options
author | Stefano Karapetsas <[email protected]> | 2013-02-28 00:39:23 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-02-28 00:39:23 +0100 |
commit | 42c0ff29c5af165f03f1ea9c588ef9a52a8200f4 (patch) | |
tree | 9ef5c54a11feda801e3903d780c87056b29c88fc /src | |
parent | 31058eaf24136226041fca54c1de4c8e73092161 (diff) | |
download | mate-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
Diffstat (limited to 'src')
-rw-r--r-- | src/daemon/daemon.c | 5 |
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); |