diff options
author | culler <culler> | 2024-07-07 14:26:18 (GMT) |
---|---|---|
committer | culler <culler> | 2024-07-07 14:26:18 (GMT) |
commit | 6b412ef050bae794cc765a9d13a415a9912a8142 (patch) | |
tree | 60a37074d8abc5a1baddb1f8be2903a289eb9339 | |
parent | c79a0d12b108ff0c86c1313bbac7c08713d85ff1 (diff) | |
download | tk-6b412ef050bae794cc765a9d13a415a9912a8142.zip tk-6b412ef050bae794cc765a9d13a415a9912a8142.tar.gz tk-6b412ef050bae794cc765a9d13a415a9912a8142.tar.bz2 |
Fix the black window when setting the docmodal bit in the stylemask, and some other black windows.
-rw-r--r-- | macosx/tkMacOSXWm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 6eed301..875b11c 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -588,6 +588,8 @@ static void placeAsTab(TKWindow *macWindow) { - (void) tkLayoutChanged { syncLayout(self); + [[self contentView] setNeedsDisplay:YES]; + Tcl_DoWhenIdle(TkMacOSXDrawAllViews, NULL); } @end @@ -607,6 +609,8 @@ static void placeAsTab(TKWindow *macWindow) { - (void) tkLayoutChanged { syncLayout(self); + [[self contentView] setNeedsDisplay:YES]; + Tcl_DoWhenIdle(TkMacOSXDrawAllViews, NULL); } #if MAC_OS_X_VERSION_MAX_ALLOWED >= 101300 @@ -1832,8 +1836,8 @@ WmSetAttribute( newFrame.size.height - heightDiff; [(TKWindow *)macWindow tkLayoutChanged]; if (heightDiff) { - //Calling XMoveResizeWindow twice is a hack to force a relayout - //of the window. + // Calling XMoveResizeWindow twice is a hack to force a relayout + // of the window. XMoveResizeWindow(winPtr->display, winPtr->window, winPtr->changes.x, winPtr->changes.y, newFrame.size.width, newHeight - 1); |