X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=2178163f8f45341d12c9ed1851cc0df1cea1a64c;hb=e9a0808a5551217eb4fd29d949f3c7672545c168;hp=d216fe82ae7925cc3bde4bb41538a460fa6b2ecd;hpb=f37dda1a9dcf0e864d556b086809d3561806b9e3;p=xboard.git diff --git a/xboard.c b/xboard.c index d216fe8..2178163 100644 --- a/xboard.c +++ b/xboard.c @@ -2622,7 +2622,8 @@ XBoard square size (hint): %d\n\ } gameInfo.boardWidth = 0; // [HGM] pieces: kludge to ensure InitPosition() calls InitDrawingSizes() InitPosition(TRUE); - XtSetKeyboardFocus(shellWidget, formWidget); +// XtSetKeyboardFocus(shellWidget, formWidget); + XSetInputFocus(xDisplay, XtWindow(formWidget), RevertToPointerRoot, CurrentTime); XtAppMainLoop(appContext); if (appData.debugMode) fclose(debugFP); // [DM] debug