From 63c79216d36784dce0a9da9b3bf706a0d4c8f408 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sun, 11 Dec 2005 02:03:49 +0000 Subject: [PATCH] XSetInputFocus() causes BadMatch errors in Gnome, and just in general, seems to do more harm than good. --- x11/process/x11.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x11/process/x11.c b/x11/process/x11.c index 182d1eaf..41669bb0 100644 --- a/x11/process/x11.c +++ b/x11/process/x11.c @@ -926,11 +926,13 @@ printf("Width %d Height %d\n",XCURSESGEOMETRY.width,XCURSESGEOMETRY.height); wmhints.flags = InputHint; wmhints.input = True; XSetWMHints(XtDisplay(topLevel), XtWindow(topLevel), &wmhints); +#if 0 XSetInputFocus(XtDisplay(topLevel), XtWindow(topLevel), RevertToNone, CurrentTime); XSetInputFocus(XtDisplay(drawing), XtWindow(drawing), RevertToNone, CurrentTime); +#endif /* * Wait for events... */