From 245eb84e73a0cc0b258a82bf93c0fa3adbafffa5 Mon Sep 17 00:00:00 2001 From: William Joye Date: Wed, 23 Oct 2019 16:17:42 -0400 Subject: try again, reset on Expose event for MacOS darkmode --- tkblt/generic/tkbltGraphOp.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tkblt/generic/tkbltGraphOp.C b/tkblt/generic/tkbltGraphOp.C index ada2758..725bde7 100644 --- a/tkblt/generic/tkbltGraphOp.C +++ b/tkblt/generic/tkbltGraphOp.C @@ -420,8 +420,10 @@ void GraphEventProc(ClientData clientData, XEvent* eventPtr) Graph* graphPtr = (Graph*)clientData; if (eventPtr->type == Expose) { - if (eventPtr->xexpose.count == 0) + if (eventPtr->xexpose.count == 0) { + graphPtr->flags |= RESET; graphPtr->eventuallyRedraw(); + } } else if (eventPtr->type == FocusIn || eventPtr->type == FocusOut) { if (eventPtr->xfocus.detail != NotifyInferior) { -- cgit v0.12