diff --git a/Cargo.lock b/Cargo.lock index cbdf391..7a9d0d0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -452,7 +452,7 @@ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" [[package]] name = "ranma-cli" -version = "0.1.6" +version = "0.1.8" dependencies = [ "argh", "libc", @@ -462,7 +462,7 @@ dependencies = [ [[package]] name = "ranma-core" -version = "0.1.6" +version = "0.1.8" dependencies = [ "parking_lot", "serde", @@ -737,7 +737,7 @@ dependencies = [ [[package]] name = "uniffi-bindgen" -version = "0.1.6" +version = "0.1.8" dependencies = [ "uniffi", ] diff --git a/app/Sources/RanmaAppDelegate.swift b/app/Sources/RanmaAppDelegate.swift index 389bf6d..e2276ef 100644 --- a/app/Sources/RanmaAppDelegate.swift +++ b/app/Sources/RanmaAppDelegate.swift @@ -50,7 +50,7 @@ class RanmaAppDelegate: NSObject, NSApplicationDelegate { DisplayInfo( id: screen.displayID, name: screen.localizedName, - isMain: screen == NSScreen.main + isMain: screen.displayID == CGMainDisplayID() ) } setDisplays(displays: displays)