aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core/lumina-open/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-open/main.cpp b/src-qt5/core/lumina-open/main.cpp
index e53181f9..f152d6f7 100644
--- a/src-qt5/core/lumina-open/main.cpp
+++ b/src-qt5/core/lumina-open/main.cpp
@@ -72,7 +72,7 @@ void showOSD(int argc, char **argv, QString message){
if(DEBUG) qDebug() << "Display OSD";
splash.setText(message);
//Make sure it is centered on the current screen
- QPoint center = App.desktop()->screenGeometry(QCursor::pos()).center();
+ QPoint center = App.screenAt(QCursor::pos())->availableGeometry().center();
splash.move(center.x()-(splash.sizeHint().width()/2), center.y()-(splash.sizeHint().height()/2));
splash.show();
//qDebug() << " - show message";
bgstack15