From 44620e7279f3ed3fa389ea035ed267869bf1ee9d Mon Sep 17 00:00:00 2001 From: uwolfer Date: Wed, 16 Apr 2008 21:14:35 +0000 Subject: [PATCH] Respect the screen resolution of the screen KRDC is running, not the first one. BUG:160853 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/KDE/kdenetwork@797822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- krdc/rdp/rdphostpreferences.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/krdc/rdp/rdphostpreferences.cpp b/krdc/rdp/rdphostpreferences.cpp index 55dc4daae..dd04f7e3b 100644 --- a/krdc/rdp/rdphostpreferences.cpp +++ b/krdc/rdp/rdphostpreferences.cpp @@ -168,10 +168,13 @@ void RdpHostPreferences::updateWidthHeight(int index) rdpUi.kcfg_Height->setValue(1200); rdpUi.kcfg_Width->setValue(1600); break; - case 5: - rdpUi.kcfg_Height->setValue(QApplication::desktop()->screenGeometry().height()); - rdpUi.kcfg_Width->setValue(QApplication::desktop()->screenGeometry().width()); + case 5: { + QDesktopWidget *desktop = QApplication::desktop(); + int currentScreen = desktop->screenNumber(rdpUi.kcfg_Height); + rdpUi.kcfg_Height->setValue(desktop->screenGeometry(currentScreen).height()); + rdpUi.kcfg_Width->setValue(desktop->screenGeometry(currentScreen).width()); break; + } case 6: default: break; -- 2.11.4.GIT