summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Fl_cocoa.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 72ab89ca3..f608ae8a4 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -2272,6 +2272,9 @@ static FLTextInputContext* fltextinputcontext_instance = nil;
}
return self;
}
+- (void)displayLayer:(CALayer *)layer { // necessary with 10.14, does not run with ≥ 10.14.2
+ [self drawRect:[self frame]];
+}
/* Used by non-layered windows and by all GL windows.
* Gets called when a window is created or resized, or moved between retina and non-retina displays