From f3d976498ae50932447060b4781148b7c2374cb9 Mon Sep 17 00:00:00 2001 From: Colin Cornaby Date: Fri, 17 Nov 2023 21:40:56 -0800 Subject: [PATCH] Removing setting of NSWindow for client window --- Sources/Plasma/Apps/plClient/Mac-Cocoa/main.mm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Sources/Plasma/Apps/plClient/Mac-Cocoa/main.mm b/Sources/Plasma/Apps/plClient/Mac-Cocoa/main.mm index 1f40d47656..a43e3f8673 100644 --- a/Sources/Plasma/Apps/plClient/Mac-Cocoa/main.mm +++ b/Sources/Plasma/Apps/plClient/Mac-Cocoa/main.mm @@ -197,6 +197,7 @@ - (id)init [window setDelegate:self]; gClient.SetClientWindow((__bridge void *)view.layer); + gClient.SetClientDisplay((hsWindowHndl)NULL); self = [super initWithWindow:window]; self.window.acceptsMouseMovedEvents = YES; @@ -469,9 +470,6 @@ - (void)startClient forKeyPath:@"device" options:NSKeyValueObservingOptionNew | NSKeyValueObservingOptionInitial context:DeviceDidChangeContext]; - - gClient.SetClientWindow((hsWindowHndl)(__bridge void*)self.window); - gClient.SetClientDisplay((hsWindowHndl)NULL); if (!gClient) { exit(0);