diff options
-rw-r--r-- | tdm/kfrontend/kgapp.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tdm/kfrontend/kgapp.cpp b/tdm/kfrontend/kgapp.cpp index 1a4bdb9ef..c6eeb130e 100644 --- a/tdm/kfrontend/kgapp.cpp +++ b/tdm/kfrontend/kgapp.cpp @@ -275,6 +275,7 @@ kg_main( const char *argv0 ) } } } + XSync( tqt_xdisplay(), False ); XSetErrorHandler( (XErrorHandler)0 ); GreeterApp *app; @@ -441,6 +442,7 @@ kg_main( const char *argv0 ) dialog->move(primaryScreenPosition.x(), primaryScreenPosition.y()); #endif } + XSync( tqt_xdisplay(), False ); XSetErrorHandler( (XErrorHandler)0 ); } else { if (trinity_desktop_lock_use_sak) { @@ -467,6 +469,7 @@ kg_main( const char *argv0 ) // This also prevents the user from being dropped to a console login if Xorg glitches or is buggy XSetErrorHandler( ignoreXError ); rslt = dialog->exec(); + XSync( tqt_xdisplay(), False ); XSetErrorHandler( (XErrorHandler)0 ); Debug( "left event loop\n" ); @@ -538,6 +541,7 @@ kg_main( const char *argv0 ) // This also prevents the user from being dropped to a console login if Xorg glitches or is buggy XSetErrorHandler( ignoreXError ); XSetInputFocus( tqt_xdisplay(), PointerRoot, PointerRoot, CurrentTime ); + XSync( tqt_xdisplay(), False ); XSetErrorHandler( (XErrorHandler)0 ); delete app; |