From b220dcbbdf8bfa00abe5e7d26f1d434cc86d9aaf Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 13 May 2019 14:15:07 +0200 Subject: [PATCH] [Notifications] Fix oversight of not taking into account screen X when placing notifications on the right side of the screen Differential Revision: https://phabricator.kde.org/D21152 --- applets/notifications/package/contents/ui/global/Globals.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/notifications/package/contents/ui/global/Globals.qml b/applets/notifications/package/contents/ui/global/Globals.qml index 2e291b443..a8cc78fe6 100644 --- a/applets/notifications/package/contents/ui/global/Globals.qml +++ b/applets/notifications/package/contents/ui/global/Globals.qml @@ -235,7 +235,7 @@ QtObject { if (popupLocation & Qt.AlignHCenter) { popup.x = x + (screenRect.width - popup.width) / 2; } else if (popupLocation & Qt.AlignRight) { - popup.x = screenRect.width - popupEdgeDistance - popup.width; + popup.x = x + screenRect.width - popupEdgeDistance - popup.width; } else { popup.x = x; }