mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-23 15:25:01 +00:00
XSetInputFocus() causes BadMatch errors in Gnome, and just in general,
seems to do more harm than good.
This commit is contained in:
@@ -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...
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user