open-src/app/xdm/bug-6822636.patch
author X gate hg captive account <xhg@xserver.us.oracle.com>
Wed, 19 Aug 2015 13:48:41 -0700
changeset 1484 bc8922b8e1d2
parent 930 1d5fde7d897b
permissions -rw-r--r--
Added tag s11u3_30 for changeset 221e9d9cc9cb

--- greeter/Login.c-orig	Tue Mar 23 22:11:38 2010
+++ greeter/Login.c	Tue Mar 23 22:12:41 2010
@@ -766,20 +766,8 @@
     }
     RedrawFail (w);
     XorCursor (w);
-    /*
-     * The GrabKeyboard here is needed only because of
-     * a bug in the R3 server -- the keyboard is grabbed on
-     * the root window, and the server won't dispatch events
-     * to the focus window unless the focus window is a ancestor
-     * of the grab window.  Bug in server already found and fixed,
-     * compatibility until at least R4.
-     */
-    if (XGrabKeyboard (XtDisplay (w), XtWindow (w), False, GrabModeAsync,
-		       GrabModeAsync, CurrentTime) != GrabSuccess)
-    {
-	XSetInputFocus (XtDisplay (w), XtWindow (w),
-			RevertToPointerRoot, CurrentTime);
-    }
+    XSetInputFocus (XtDisplay (w), XtWindow (w),
+		RevertToPointerRoot, CurrentTime);
 }
 
 /* Returns 0 on success, -1 on failure */