[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
wilder-5.19
Kai Uwe Broulik 7 years ago
parent 0133391337
commit b220dcbbdf
  1. 2
      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;
}

Loading…
Cancel
Save