Skip to content

Commit

Permalink
Removing setting of NSWindow for client window
Browse files Browse the repository at this point in the history
  • Loading branch information
colincornaby committed Nov 18, 2023
1 parent 7b548f4 commit f3d9764
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Sources/Plasma/Apps/plClient/Mac-Cocoa/main.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f3d9764

Please sign in to comment.