diff options
author | Kevin Walzer <kw@codebykevin.com> | 2014-08-16 00:52:00 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2014-08-16 00:52:00 (GMT) |
commit | 43e5511c3974465da55d322a1b4e038f637dd44a (patch) | |
tree | 33192a2e02b2dc263520583079b8c24dbe974427 /generic | |
parent | 8a81bfc36163fe9b6bb2dcc05ad9a1042388b835 (diff) | |
download | tk-43e5511c3974465da55d322a1b4e038f637dd44a.zip tk-43e5511c3974465da55d322a1b4e038f637dd44a.tar.gz tk-43e5511c3974465da55d322a1b4e038f637dd44a.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.c | 10 |
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 |