notifications: fix notifications on manually rotated monitor (#5599)

This commit is contained in:
FUFSoB 2024-04-16 01:47:39 +05:00 committed by GitHub
parent 02cbf049d2
commit c99803af15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 7 deletions

View file

@ -55,6 +55,7 @@ class CHyprNotificationOverlay {
cairo_t* m_pCairo = nullptr;
CMonitor* m_pLastMonitor = nullptr;
Vector2D m_vecLastSize = Vector2D(-1, -1);
CTexture m_tTexture;
@ -62,4 +63,4 @@ class CHyprNotificationOverlay {
std::string m_szIconFontName = "Sans";
};
inline std::unique_ptr<CHyprNotificationOverlay> g_pHyprNotificationOverlay;
inline std::unique_ptr<CHyprNotificationOverlay> g_pHyprNotificationOverlay;