From 7406ce51837f3674f19d40dad7e75974c3054200 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Sat, 5 Sep 2020 13:12:10 +0200 Subject: [PATCH] #589 support macOS Big Sur Build 20A5364e --- CHANGELOG.md | 2 ++ src/osax/common.h | 2 +- src/osax/payload.m | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd9be2dc..a0acb04b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Update scripting-addition to support macOS Big Sur 11.0 Build 20A5364e [#589](https://github.com/koekeishiya/yabai/issues/589) ## [3.3.0] - 2020-09-03 ### Added diff --git a/src/osax/common.h b/src/osax/common.h index a543659a..3c922d10 100644 --- a/src/osax/common.h +++ b/src/osax/common.h @@ -1,7 +1,7 @@ #ifndef SA_COMMON_H #define SA_COMMON_H -#define OSAX_VERSION "1.0.19" +#define OSAX_VERSION "1.0.20" #define OSAX_PAYLOAD_SUCCESS 0 #define OSAX_PAYLOAD_NOT_FOUND 1 diff --git a/src/osax/payload.m b/src/osax/payload.m index 9f0ff518..5f9584a1 100644 --- a/src/osax/payload.m +++ b/src/osax/payload.m @@ -265,7 +265,7 @@ uint64_t get_set_front_window_offset(NSOperatingSystemVersion os_version) { const char *get_dock_spaces_pattern(NSOperatingSystemVersion os_version) { if (os_version.majorVersion == 11) { - return "?? ?? ?? 00 49 8B 7D 00 48 8B 35 ?? ?? 41 00 44 89 BD 38 FE FF FF 44 89 FA 41 FF D4 48 89 C7 E8 ?? ?? 32 00 48 89 85 E8 FD FF FF 48 8B 3D ?? ?? 41 00 E8 ?? ?? 32 00 48 8B 35 ?? ?? 41 00 48 89 C7 31 D2 41 FF D4 48 89 85 28 FE FF FF 49 8B 7D 00 48"; + return "?? ?? ?? 00 49 8B 7D 00 48 8B 35 ?? ?? ?? 00 44 89 BD 38 FE FF FF 44 89 FA 41 FF D4 48 89 C7 E8 ?? ?? 32 00 48 89 85 E8 FD FF FF 48 8B 3D ?? ?? 41 00 E8 ?? ?? 32 00 48 8B 35 ?? ?? ?? 00 48 89 C7 31 D2 41 FF D4 48 89 85 28 FE FF FF 49 8B 7D 00 48"; } else if (os_version.minorVersion == 15) { if (os_version.patchVersion >= 4) { return "?? ?? ?? 00 49 8B 3F 48 8B 35 ?? 3D 44 00 44 89 B5 40 FE FF FF 44 89 F2 41 FF D4 48 89 C7 E8 ?? 70 35 00 48 89 85 E8 FD FF FF 48 8B 3D ?? 8D 44 00 E8 ?? 6F 35 00 4C 8B 35 ?? 3E 44 00 48 89 C7 4C 89 F6 31 D2 41 FF D4 48 89 85 28 FE FF FF 49 8B 3F 48 8B 35 ?? 82 44 00 48 89 DA 41 FF";