aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-06-17 19:45:20 +0530
committerLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-06-17 19:45:20 +0530
commit538d7d5db37edb952b9be4757f726dc6a9636b6e (patch)
tree2b6a6dbc4f4fcfc7312b4529fd2b122dc1448218 /src
parent90210de2cdc7ee9bcfc35e6d6d803bbc787ad176 (diff)
downloadwhatsie-538d7d5db37edb952b9be4757f726dc6a9636b6e.tar.gz
whatsie-538d7d5db37edb952b9be4757f726dc6a9636b6e.zip
fix: use availableGeometry to map position of notification
Diffstat (limited to 'src')
-rw-r--r--src/notificationpopup.h2
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");