diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-10-23 20:17:42 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-10-23 20:17:42 (GMT) |
commit | 245eb84e73a0cc0b258a82bf93c0fa3adbafffa5 (patch) | |
tree | 25a2d151ad9081748dbb0dad9e150c48080b68f0 /tkblt | |
parent | e340c085d299974fa1bdce7d87d14602ed8b1248 (diff) | |
download | blt-245eb84e73a0cc0b258a82bf93c0fa3adbafffa5.zip blt-245eb84e73a0cc0b258a82bf93c0fa3adbafffa5.tar.gz blt-245eb84e73a0cc0b258a82bf93c0fa3adbafffa5.tar.bz2 |
try again, reset on Expose event for MacOS darkmode
Diffstat (limited to 'tkblt')
-rw-r--r-- | tkblt/generic/tkbltGraphOp.C | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |