XSetInputFocus() causes BadMatch errors in Gnome, and just in general,

seems to do more harm than good.
This commit is contained in:
William McBrine
2005-12-11 02:03:49 +00:00
parent 180959e77e
commit 63c79216d3

View File

@@ -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...
*/