summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2010-01-12 10:24:34 -0800
committerAlan Coopersmith <alan.coopersmith@sun.com>2010-01-12 10:51:22 -0800
commitb69f12706abc728e9c16449f52f02ae0d3a0ee62 (patch)
treed7c988692516b1d87a293eaf7b6ec8064bcfcf01
parentc925709069d7515bb94f43e4b88155a95e41c8fe (diff)
Remove workaround for X11R3 server bug
The comment promised 'compatibility until at least R4', so we're 20 years past due for removing this. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com> Reviewed-by: Julien Cristau <jcristau@debian.org>
-rw-r--r--greeter/Login.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/greeter/Login.c b/greeter/Login.c
index fefa29d..5afe363 100644
--- a/greeter/Login.c
+++ b/greeter/Login.c
@@ -766,20 +766,8 @@ draw_it (LoginWidget w)
}
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 */