From 018ae69b33f3bef10b9387d6606b45371735b730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Tue, 16 May 2017 14:54:46 +0200 Subject: [PATCH] Cleanup Related to #985. --- src/cocoa_window.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 0c40c71a..17d2b206 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -423,10 +423,10 @@ static const NSRange kEmptyRange = { NSNotFound, 0 }; - (id)makeBackingLayer { - if (!window->ns.layer) { - window->ns.layer = [super makeBackingLayer]; - } - return window->ns.layer; + if (window->ns.layer) + return window->ns.layer; + + return [super makeBackingLayer]; } - (void)cursorUpdate:(NSEvent *)event