From 538d7d5db37edb952b9be4757f726dc6a9636b6e Mon Sep 17 00:00:00 2001 From: Keshav Bhatt Date: Fri, 17 Jun 2022 19:45:20 +0530 Subject: fix: use availableGeometry to map position of notification --- src/notificationpopup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notificationpopup.h b/src/notificationpopup.h index 5269326..a402ecd 100644 --- a/src/notificationpopup.h +++ b/src/notificationpopup.h @@ -95,7 +95,7 @@ public: protected slots: void animateIn(int screenNumber) { - QRect screenRect = QGuiApplication::screens().at(screenNumber)->geometry(); + QRect screenRect = QGuiApplication::screens().at(screenNumber)->availableGeometry(); int x = (screenRect.x() + screenRect.width() - 20) - this->width(); int y = 40; QPropertyAnimation *a = new QPropertyAnimation(this, "pos"); -- cgit v1.2.3