diff options
author | 2022-06-17 19:45:20 +0530 | |
---|---|---|
committer | 2022-06-17 19:45:20 +0530 | |
commit | 538d7d5db37edb952b9be4757f726dc6a9636b6e (patch) | |
tree | 2b6a6dbc4f4fcfc7312b4529fd2b122dc1448218 /src | |
parent | 90210de2cdc7ee9bcfc35e6d6d803bbc787ad176 (diff) | |
download | whatsie-538d7d5db37edb952b9be4757f726dc6a9636b6e.tar.gz whatsie-538d7d5db37edb952b9be4757f726dc6a9636b6e.zip |
fix: use availableGeometry to map position of notification
Diffstat (limited to 'src')
-rw-r--r-- | src/notificationpopup.h | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |