Skip to content

Commit

Permalink
#2331 #2324 fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Jun 23, 2024
1 parent a1abe2c commit 4bd6f58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/osax/common.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef SA_COMMON_H
#define SA_COMMON_H

#define OSAX_VERSION "2.1.12"
#define OSAX_VERSION "2.1.13"

#define OSAX_ATTRIB_DOCK_SPACES 0x01
#define OSAX_ATTRIB_DPPM 0x02
Expand Down
4 changes: 4 additions & 0 deletions src/osax/payload.m
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ static bool verify_os_version(NSOperatingSystemVersion os_version)
return true; // Ventura 13.0
} else if (os_version.majorVersion == 14) {
return true; // Sonoma 14.0
} else if (os_version.majorVersion == 15) {
return true; // Sequoia 15.0
}

NSLog(@"[yabai-sa] spaces functionality is only supported on macOS Big Sur 11.0.0+, Monterey 12.0.0+, Ventura 13.0.0+, and Sonoma 14.0.0+");
Expand All @@ -240,6 +242,8 @@ static bool verify_os_version(NSOperatingSystemVersion os_version)
return true; // Ventura 13.0
} else if (os_version.majorVersion == 14) {
return true; // Sonoma 14.0
} else if (os_version.majorVersion == 15) {
return true; // Sequoia 15.0
}

NSLog(@"[yabai-sa] spaces functionality is only supported on macOS Monterey 12.0.0+, and Ventura 13.0.0+, and Sonoma 14.0.0+");
Expand Down

0 comments on commit 4bd6f58

Please sign in to comment.