aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/options/container.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/options/container.cpp')
-rw-r--r--src/modules/options/container.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/options/container.cpp b/src/modules/options/container.cpp
index 012f7bf25..731f5ff33 100644
--- a/src/modules/options/container.cpp
+++ b/src/modules/options/container.cpp
@@ -100,8 +100,8 @@ void KviOptionsWidgetContainer::showEvent(QShowEvent *e)
{
if(parent() == 0)
{
- move((g_pApp->desktop()->width() - width()) / 2,
- (g_pApp->desktop()->height() - height()) / 2);
+ QRect rect = g_pApp->desktop()->screenGeometry(g_pApp->desktop()->primaryScreen());
+ move((rect.width() - width())/2,(rect.height() - height())/2);
}
QWidget::showEvent(e);
m_pCancel->setFocus();