Tk Source Code

Check-in [c3fd47a7fd]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix bug [6ca257310a]: add implementation of [TkWindow windowWillResize].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | bug-6ca257310a
Files: files | file ages | folders
SHA3-256:c3fd47a7fdbe621b2f70d7a12a49cc8aca32d95b9f78b58ad5b545027c40b720
User & Date: culler 2018-06-29 21:39:57
Context
2018-06-30
13:48
Synchronize the resizing flags and attributes so wm resizable reports values correctly. check-in: 3752da0337 user: culler tags: bug-6ca257310a
2018-06-29
21:39
Fix bug [6ca257310a]: add implementation of [TkWindow windowWillResize]. check-in: c3fd47a7fd user: culler tags: bug-6ca257310a
2018-06-18
07:44
Sync tcl.m4 with Tcl, and regenerate configure script check-in: 984c527aa8 user: jan.nijtmans tags: core-8-6-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to macosx/tkMacOSXWm.c.

227
228
229
230
231
232
233













234
235
236
237
238
239
240
    pointrect.origin = point;
    pointrect.size.width = 0;
    pointrect.size.height = 0;
    return [self convertRectFromScreen:pointrect].origin;
}
#endif














@end

#pragma mark -


/*
 * Forward declarations for procedures defined in this file:







>
>
>
>
>
>
>
>
>
>
>
>
>







227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
    pointrect.origin = point;
    pointrect.size.width = 0;
    pointrect.size.height = 0;
    return [self convertRectFromScreen:pointrect].origin;
}
#endif

- (NSSize)windowWillResize:(NSWindow *)sender 
                    toSize:(NSSize)frameSize
{
    NSRect currentFrame = [sender frame];
    TkWindow *winPtr = TkMacOSXGetTkWindow(sender);
    if (!(winPtr->wmInfoPtr->attributes & kWindowHorizontalZoomAttribute)) {
	frameSize.width = currentFrame.size.width;
    }
    if (!(winPtr->wmInfoPtr->attributes & kWindowVerticalZoomAttribute)) {
	frameSize.height = currentFrame.size.height;
    }
    return frameSize;
}
@end

#pragma mark -


/*
 * Forward declarations for procedures defined in this file: