summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2018-11-25 02:46:11 (GMT)
committerKevin Walzer <kw@codebykevin.com>2018-11-25 02:46:11 (GMT)
commitc46b1aa139d58b004233b18ffc29d8b67c692d6e (patch)
treeab24fef3a6e33c590de32b8231bd985247bfdd48 /macosx
parent06d8d6db4148588800bff20c1484ff21c88834fa (diff)
parent181784ecec17793582b1e92f1cb0b072bb9d8791 (diff)
downloadtk-c46b1aa139d58b004233b18ffc29d8b67c692d6e.zip
tk-c46b1aa139d58b004233b18ffc29d8b67c692d6e.tar.gz
tk-c46b1aa139d58b004233b18ffc29d8b67c692d6e.tar.bz2
Merge fix for Tk console not accepting keyboard input initially when launched from bundled Wish app on macOS
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXInit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/tkMacOSXInit.c b/macosx/tkMacOSXInit.c
index 3a212c4..447619f 100644
--- a/macosx/tkMacOSXInit.c
+++ b/macosx/tkMacOSXInit.c
@@ -382,6 +382,14 @@ TkpInit(
Tcl_CreateObjCommand(interp, "::tk::mac::iconBitmap",
TkMacOSXIconBitmapObjCmd, NULL, NULL);
+ /*
+ * Workaround for 3efbe4a397; console not accepting keyboard input on 10.14
+ * if displayed before main window. This places console in background and it
+ * accepts input after being raised.
+ */
+
+ while (Tcl_DoOneEvent(TCL_IDLE_EVENTS)) {}
+
return TCL_OK;
}