diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-04 22:22:15 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-10-04 22:22:15 (GMT) |
commit | 4d4c3be876cd49ad3d88ffcca2a1964c63081414 (patch) | |
tree | 4bb4b78372fb2eb15e892941c7f0dfc733844330 /macosx/tkMacOSXWm.c | |
parent | 271b2253102a315cd4aa422f7ee6bbe53c370b35 (diff) | |
download | tk-4d4c3be876cd49ad3d88ffcca2a1964c63081414.zip tk-4d4c3be876cd49ad3d88ffcca2a1964c63081414.tar.gz tk-4d4c3be876cd49ad3d88ffcca2a1964c63081414.tar.bz2 |
Fix [c420b565c0]: Aqua: allow isdark to work for non-root toplevels. Analysis and patch by chrstphrchvz
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r-- | macosx/tkMacOSXWm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 25966a6..a1adcd0 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -5598,7 +5598,8 @@ TkUnsupported1ObjCmd( Tcl_WrongNumArgs(interp, 2, objv, "window"); return TCL_ERROR; } - Tcl_SetObjResult(interp, Tcl_NewBooleanObj(TkMacOSXInDarkMode(tkwin))); + Tcl_SetObjResult(interp, Tcl_NewBooleanObj( + TkMacOSXInDarkMode((Tk_Window) winPtr))); return TCL_OK; default: return TCL_ERROR; |