From 4d4c3be876cd49ad3d88ffcca2a1964c63081414 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Fri, 4 Oct 2019 22:22:15 +0000 Subject: Fix [c420b565c0]: Aqua: allow isdark to work for non-root toplevels. Analysis and patch by chrstphrchvz --- macosx/tkMacOSXWm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v0.12