All pastes #1229663 Raw Edit

no grab on secured kdm displays

public diff v1 · immutable
#1229663 ·published 2008-10-17 20:32 UTC
rendered paste body
Index: kdm_greet.c===================================================================--- kdm_greet.c	(revision 872681)+++ kdm_greet.c	(working copy)@@ -383,6 +383,8 @@ syncTimeout( int n ATTR_UNUSED ) void secureDisplay( Display *dpy ) {+	if (_authorized)+		return; 	debug( "secureDisplay %s\n", dname ); 	(void)alarm( (unsigned)_grabTimeout ); 	(void)signal( SIGALRM, syncTimeout );@@ -408,6 +410,8 @@ secureDisplay( Display *dpy ) void unsecureDisplay( Display *dpy ) {+	if (_authorized)+		return; 	debug( "Unsecure display %s\n", dname ); 	if (_grabServer) { 		XUngrabServer( dpy );@@ -460,6 +464,8 @@ securePointer( Display *dpy ) void secureInputs( Display *dpy ) {+	if (_authorized)+		return; 	debug( "secureInputs %s\n", dname ); 	secureKeyboard( dpy ); 	securePointer( dpy );@@ -470,6 +476,8 @@ secureInputs( Display *dpy ) void unsecureInputs( Display *dpy ) {+	if (_authorized)+		return; 	debug( "unsecureInputs %s\n", dname ); 	XSetInputFocus( dpy, PointerRoot, PointerRoot, CurrentTime ); 	XUngrabKeyboard( dpy, CurrentTime );