summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorculler <culler>2024-07-07 14:26:18 (GMT)
committerculler <culler>2024-07-07 14:26:18 (GMT)
commit6b412ef050bae794cc765a9d13a415a9912a8142 (patch)
tree60a37074d8abc5a1baddb1f8be2903a289eb9339 /macosx
parentc79a0d12b108ff0c86c1313bbac7c08713d85ff1 (diff)
downloadtk-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.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXWm.c8
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);