From b544d338ecf10ede35f1e3eab65efa62bcf02d7e Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 26 Aug 2011 20:00:48 +0000 Subject: Fix kdm themed dialog position on screen git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1249608 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdm/kfrontend/kgapp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kdm/kfrontend/kgapp.cpp') diff --git a/kdm/kfrontend/kgapp.cpp b/kdm/kfrontend/kgapp.cpp index 8dea3c904..fac8f003c 100644 --- a/kdm/kfrontend/kgapp.cpp +++ b/kdm/kfrontend/kgapp.cpp @@ -327,12 +327,13 @@ kg_main( const char *argv0 ) if (!tgrt->isOK()) { delete tgrt; dialog = new KStdGreeter; + dialog->move(primaryScreenPosition.x(), primaryScreenPosition.y()); } XSetErrorHandler( (XErrorHandler)0 ); } else { dialog = new KStdGreeter; + dialog->move(dialog->x() + primaryScreenPosition.x(), dialog->y() + primaryScreenPosition.y()); } - dialog->move(dialog->x() + primaryScreenPosition.x(), dialog->y() + primaryScreenPosition.y()); TQPoint oldCursorPos = TQCursor::pos(); TQCursor::setPos(oldCursorPos.x() + primaryScreenPosition.x(), oldCursorPos.y() + primaryScreenPosition.y()); if (*_preloader) { -- cgit v1.2.1