Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Spaceman/Helpers/SpaceObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class SpaceObserver {
}

@objc public func updateSpaceInformation() {
let displays = CGSCopyManagedDisplaySpaces(conn) as! [NSDictionary]
let displays = CGSCopyManagedDisplaySpaces(conn)!.takeRetainedValue() as! [NSDictionary]
var activeSpaceID = -1
var spacesIndex = 0
var allSpaces = [Space]()
Expand Down
2 changes: 1 addition & 1 deletion Spaceman/Spaceman-Bridging-Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#import <Foundation/Foundation.h>

int _CGSDefaultConnection();
id CGSCopyManagedDisplaySpaces(int conn);
CFArrayRef CGSCopyManagedDisplaySpaces(int conn);
id CGSCopyActiveMenuBarDisplayIdentifier(int conn);

#endif /* Spaceman_Bridging_Header_h */