diff --git a/src/panel/widgets/notifications/notification-center.cpp b/src/panel/widgets/notifications/notification-center.cpp index 8938fa33..614cfe4d 100644 --- a/src/panel/widgets/notifications/notification-center.cpp +++ b/src/panel/widgets/notifications/notification-center.cpp @@ -46,7 +46,13 @@ void WayfireNotificationCenter::newNotification(Notification::id_type id) if (!popover_timeout.empty() || !popover->is_visible()) { popover_timeout.disconnect(); - popover_timeout = Glib::signal_timeout().connect([=]() -> bool { popover->popdown(); }, timeout * 1000); + popover_timeout = Glib::signal_timeout().connect( + [=] { + popover->popdown(); + popover_timeout.disconnect(); + return true; + }, + timeout * 1000); } popover->popup(); } diff --git a/src/panel/widgets/notifications/single-notification.cpp b/src/panel/widgets/notifications/single-notification.cpp index 732f9720..4a30a150 100644 --- a/src/panel/widgets/notifications/single-notification.cpp +++ b/src/panel/widgets/notifications/single-notification.cpp @@ -2,7 +2,6 @@ #include "daemon.hpp" #include #include -#include #include const static std::string FILE_PREFIX = "file://";