diff --git a/src/cocoa_window.m b/src/cocoa_window.m index d2b207bb..0c40c71a 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -423,6 +423,9 @@ static const NSRange kEmptyRange = { NSNotFound, 0 }; - (id)makeBackingLayer { + if (!window->ns.layer) { + window->ns.layer = [super makeBackingLayer]; + } return window->ns.layer; }