diff options
author | Kevin Walzer <kw@codebykevin.com> | 2020-03-11 01:44:07 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2020-03-11 01:44:07 (GMT) |
commit | 908da12349949cd077caa0cf8de06f88c23c656f (patch) | |
tree | 6782880f7119d38033bb6b2ece21cc5a4676c8a5 /macosx/tkMacOSXWm.c | |
parent | 42c1fc0dcf7e305294b276c22d6a10026fdbc15d (diff) | |
download | tk-908da12349949cd077caa0cf8de06f88c23c656f.zip tk-908da12349949cd077caa0cf8de06f88c23c656f.tar.gz tk-908da12349949cd077caa0cf8de06f88c23c656f.tar.bz2 |
Fix for wm fullscreen attributes bit on macOS; thanks to Christopher Chavez for patch (ticket [fb2ec386])
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r-- | macosx/tkMacOSXWm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index ceb3f3f..9dcdd01 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -1339,7 +1339,7 @@ WmSetAttribute( if (Tcl_GetBooleanFromObj(interp, value, &boolean) != TCL_OK) { return TCL_ERROR; } - if (boolean != ((wmPtr->flags & WM_FULLSCREEN) != 0)) { + if (boolean != (([macWindow styleMask] & NSFullScreenWindowMask) != 0)) { #if !(MAC_OS_X_VERSION_MAX_ALLOWED < 1070) [macWindow toggleFullScreen:macWindow]; #else @@ -1456,7 +1456,7 @@ WmGetAttribute( result = Tcl_NewDoubleObj([macWindow alphaValue]); break; case WMATT_FULLSCREEN: - result = Tcl_NewBooleanObj(wmPtr->flags & WM_FULLSCREEN); + result = Tcl_NewBooleanObj([macWindow styleMask] & NSFullScreenWindowMask); break; case WMATT_MODIFIED: result = Tcl_NewBooleanObj([macWindow isDocumentEdited]); |