summaryrefslogtreecommitdiffstats
path: root/src/client/net/serverconnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/net/serverconnection.cpp')
-rw-r--r--src/client/net/serverconnection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/net/serverconnection.cpp b/src/client/net/serverconnection.cpp
index 760b445..c590dc5 100644
--- a/src/client/net/serverconnection.cpp
+++ b/src/client/net/serverconnection.cpp
@@ -191,8 +191,8 @@ void ServerConnection::handleMsg()
y = 300;
// Get rect of primary screen
- int primary = QApplication::desktop()->primaryScreen();
- QRect primaryRect = QApplication::desktop()->availableGeometry(primary);
+ const QDesktopWidget primary;
+ const QRect primaryRect = primary.screenGeometry();
QPixmap desktop(
QPixmap::grabWindow(