From 9f756eadc6ef86d602c746189b91b1c87c6d6cc2 Mon Sep 17 00:00:00 2001 From: lbartoletti Date: Tue, 22 Oct 2019 18:33:04 +0200 Subject: lumina/src-qt5/core/lumina-open/main.cpp:75:34: warning: 'screenGeometry' is deprecated: Use QGuiApplication::screenAt() --- src-qt5/core/lumina-open/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- cgit