summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2014-08-16 00:52:00 (GMT)
committerKevin Walzer <kw@codebykevin.com>2014-08-16 00:52:00 (GMT)
commit4ccf614e946e9d871b37e6cd562a038f687e8d7a (patch)
tree33192a2e02b2dc263520583079b8c24dbe974427 /generic
parenta5927e8d5f0b12747732ed2d4a6c58ac801314b9 (diff)
downloadtk-4ccf614e946e9d871b37e6cd562a038f687e8d7a.zip
tk-4ccf614e946e9d871b37e6cd562a038f687e8d7a.tar.gz
tk-4ccf614e946e9d871b37e6cd562a038f687e8d7a.tar.bz2
Fix for shimmering of buttons embedded when scrolled in text and canvas widgets; improvements in scrolling smoothness in text widget. Thanks to Marc Culler for patches.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 2516e1c..cd232bf 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -3968,6 +3968,16 @@ DisplayText(
UpdateDisplayInfo(textPtr);
dInfoPtr->dLinesInvalidated = 0;
+#ifdef MAC_OSX_TK
+ /*
+ * Make sure that unmapped subwindows really have been unmapped.
+ * If the unmap request is pending as an idle request, the window
+ * can get redrawn on top of the widget.
+ */
+ while (Tcl_DoOneEvent(TCL_IDLE_EVENTS|TCL_DONT_WAIT)) {}
+#endif
+
+
/*
* See if it's possible to bring some parts of the screen up-to-date by
* scrolling (copying from other parts of the screen). We have to be