From 3a61350286de842c7f1566c38e2b42821080ddf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lewandowski?= <49685661+FakeMichau@users.noreply.github.com> Date: Fri, 13 Oct 2023 01:05:05 +0200 Subject: [PATCH] notifications: Schedule a frame on notification creation (#3556) --- src/debug/HyprNotificationOverlay.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/debug/HyprNotificationOverlay.cpp b/src/debug/HyprNotificationOverlay.cpp index b19f56fac..b4ed38c36 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) {