summaryrefslogtreecommitdiffstats
path: root/tkblt/generic
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-10-23 20:17:42 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2019-10-23 20:17:42 (GMT)
commit245eb84e73a0cc0b258a82bf93c0fa3adbafffa5 (patch)
tree25a2d151ad9081748dbb0dad9e150c48080b68f0 /tkblt/generic
parente340c085d299974fa1bdce7d87d14602ed8b1248 (diff)
downloadblt-245eb84e73a0cc0b258a82bf93c0fa3adbafffa5.zip
blt-245eb84e73a0cc0b258a82bf93c0fa3adbafffa5.tar.gz
blt-245eb84e73a0cc0b258a82bf93c0fa3adbafffa5.tar.bz2
try again, reset on Expose event for MacOS darkmode
Diffstat (limited to 'tkblt/generic')
-rw-r--r--tkblt/generic/tkbltGraphOp.C4
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) {