summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXEmbed.c
diff options
context:
space:
mode:
authormarc_culler <marc.culler@gmail.com>2020-07-18 16:53:31 (GMT)
committermarc_culler <marc.culler@gmail.com>2020-07-18 16:53:31 (GMT)
commitb63b41199525b0e3e0e95f65e6991f75f8e31dd5 (patch)
tree40c8cd9613fe3160eb087628d192d6ee40a35487 /macosx/tkMacOSXEmbed.c
parent451fa4203bff3f5e6a0ab5028f900823174b4c83 (diff)
parent132c939d5ab36c6a55d7bc9e1692fd981c9a88ca (diff)
downloadtk-b63b41199525b0e3e0e95f65e6991f75f8e31dd5.zip
tk-b63b41199525b0e3e0e95f65e6991f75f8e31dd5.tar.gz
tk-b63b41199525b0e3e0e95f65e6991f75f8e31dd5.tar.bz2
Provide better control over how and when [NSView drawRect:] is called.
Diffstat (limited to 'macosx/tkMacOSXEmbed.c')
-rw-r--r--macosx/tkMacOSXEmbed.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/macosx/tkMacOSXEmbed.c b/macosx/tkMacOSXEmbed.c
index 6c4ac1f..e58cdd0 100644
--- a/macosx/tkMacOSXEmbed.c
+++ b/macosx/tkMacOSXEmbed.c
@@ -1049,9 +1049,7 @@ EmbedGeometryRequest(
*/
Tk_GeometryRequest((Tk_Window) winPtr, width, height);
- while (Tcl_DoOneEvent(TCL_IDLE_EVENTS)) {
- /* Empty loop body. */
- }
+ while (Tcl_DoOneEvent(TCL_IDLE_EVENTS|TCL_TIMER_EVENTS|TCL_DONT_WAIT)) {}
if ((winPtr->changes.width != width)
|| (winPtr->changes.height != height)) {
EmbedSendConfigure(containerPtr);