Skip to content

Commit

Permalink
Remove CGPoint+Hashable.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Jan 18, 2025
1 parent b553645 commit f03e60f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
9 changes: 0 additions & 9 deletions src/ShowyEdge/swift/Extensions/CGPoint+Hashable.swift

This file was deleted.

6 changes: 3 additions & 3 deletions src/ShowyEdge/swift/WorkspaceData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class WorkspaceData: NSObject, ObservableObject {

@Published var currentInputSourceID: String = ""
@Published var currentInputModeID: String = ""
var menubarOrigins: Set<CGPoint> = []
var menubarOrigins: [CGPoint] = []
var activeSpaceDidChangeObserver: NSObjectProtocol?

public func start() {
Expand Down Expand Up @@ -62,7 +62,7 @@ public class WorkspaceData: NSObject, ObservableObject {
}

private func updateMenubarOrigins() {
var menubarOrigins: Set<CGPoint> = []
var menubarOrigins: [CGPoint] = []

if let windows = CGWindowListCopyWindowInfo(.optionOnScreenOnly, kCGNullWindowID)
as? [[String: Any]]
Expand All @@ -77,7 +77,7 @@ public class WorkspaceData: NSObject, ObservableObject {
let x = bounds["X"] as? NSNumber,
let y = bounds["Y"] as? NSNumber
{
menubarOrigins.insert(
menubarOrigins.append(
CGPoint(
x: x.doubleValue,
y: y.doubleValue))
Expand Down

0 comments on commit f03e60f

Please sign in to comment.