diff options
| author | MichaĆ Lewandowski <49685661+FakeMichau@users.noreply.github.com> | 2023-10-13 01:05:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-13 00:05:05 +0100 |
| commit | 3a61350286de842c7f1566c38e2b42821080ddf4 (patch) | |
| tree | 9708a20e8d90f0a8c74614032b08ddbb65d45548 /src/debug/HyprNotificationOverlay.cpp | |
| parent | e4bcd2e2da3136fb55886c4f02dd4a01099e687b (diff) | |
notifications: Schedule a frame on notification creation (#3556)
Diffstat (limited to 'src/debug/HyprNotificationOverlay.cpp')
| -rw-r--r-- | src/debug/HyprNotificationOverlay.cpp | 4 |
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) { |
