close one notification to close all

This commit is contained in:
2026-02-02 21:47:47 +01:00
parent ed1a9a8605
commit 6d9f016350
9 changed files with 137 additions and 33 deletions
@@ -9,7 +9,7 @@
#include "gtk4-layer-shell.h"
#include "gtkmm/cssprovider.h"
BaseNotification::BaseNotification(std::shared_ptr<Gdk::Monitor> monitor) {
BaseNotification::BaseNotification(uint64_t notificationId, std::shared_ptr<Gdk::Monitor> monitor) {
ensure_notification_css_loaded();
set_default_size(350, -1);
gtk_layer_init_for_window(gobj());
@@ -23,6 +23,8 @@ BaseNotification::BaseNotification(std::shared_ptr<Gdk::Monitor> monitor) {
this->set_hexpand(false);
this->set_vexpand(false);
this->notificationId = notificationId;
}
void BaseNotification::ensure_notification_css_loaded() {