summaryrefslogtreecommitdiffstats
path: root/tdm
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-05-21 09:02:28 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-05-21 09:02:28 -0500
commitb53726b1d51b29334cdb7c6ae74eeb48cde65566 (patch)
tree592af834ef67251a1e43414782ae45100c25a3cf /tdm
parent63989b0b224810fc7905faa37ef9a5309e050fea (diff)
downloadtdebase-b53726b1d51b29334cdb7c6ae74eeb48cde65566.tar.gz
tdebase-b53726b1d51b29334cdb7c6ae74eeb48cde65566.zip
Attempt to fix TDM failure whereby the custom X11 event handler is not used in certain circumstances
Diffstat (limited to 'tdm')
-rw-r--r--tdm/kfrontend/kgapp.cpp4
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;