summaryrefslogtreecommitdiff
path: root/src/debug/HyprNotificationOverlay.cpp
diff options
context:
space:
mode:
authorMichaƂ Lewandowski <49685661+FakeMichau@users.noreply.github.com>2023-10-13 01:05:05 +0200
committerGitHub <noreply@github.com>2023-10-13 00:05:05 +0100
commit3a61350286de842c7f1566c38e2b42821080ddf4 (patch)
tree9708a20e8d90f0a8c74614032b08ddbb65d45548 /src/debug/HyprNotificationOverlay.cpp
parente4bcd2e2da3136fb55886c4f02dd4a01099e687b (diff)
notifications: Schedule a frame on notification creation (#3556)
Diffstat (limited to 'src/debug/HyprNotificationOverlay.cpp')
-rw-r--r--src/debug/HyprNotificationOverlay.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/debug/HyprNotificationOverlay.cpp b/src/debug/HyprNotificationOverlay.cpp
index b19f56fa..b4ed38c3 100644
--- a/src/debug/HyprNotificationOverlay.cpp
+++ b/src/debug/HyprNotificationOverlay.cpp
@@ -44,6 +44,10 @@ void CHyprNotificationOverlay::addNotification(const std::string& text, const CC
PNOTIF->started.reset();
PNOTIF->timeMs = timeMs;
PNOTIF->icon = icon;
+
+ for (auto& m : g_pCompositor->m_vMonitors) {
+ g_pCompositor->scheduleFrameForMonitor(m.get());
+ }
}
wlr_box CHyprNotificationOverlay::drawNotifications(CMonitor* pMonitor) {