Skip to content

Commit

Permalink
#2324 update scripting-addition for macOS Sequoia x86-64
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Sep 17, 2024
1 parent c8f913c commit 27f4423
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions doc/yabai.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
.\" Title: yabai
.\" Author: [see the "AUTHOR(S)" section]
.\" Generator: Asciidoctor 2.0.23
.\" Date: 2024-08-04
.\" Date: 2024-09-17
.\" Manual: Yabai Manual
.\" Source: Yabai
.\" Language: English
.\"
.TH "YABAI" "1" "2024-08-04" "Yabai" "Yabai Manual"
.TH "YABAI" "1" "2024-09-17" "Yabai" "Yabai Manual"
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.ss \n[.ss] 0
Expand Down Expand Up @@ -566,6 +566,7 @@ Send the selected window to the given display.
\fB\-\-space\fP \fI<SPACE_SEL>\fP
.RS 4
Send the selected window to the given space.
System Integrity Protection must be partially disabled on macOS Monterey 12.7+, Ventura 13.6+, Sonoma 14.5+, and macOS Sequoia.
.RE
.sp
\fB\-\-swap\fP \fI<WINDOW_SEL>\fP
Expand Down
1 change: 1 addition & 0 deletions doc/yabai.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ COMMAND

*--space* '<SPACE_SEL>'::
Send the selected window to the given space.
System Integrity Protection must be partially disabled on macOS Monterey 12.7+, Ventura 13.6+, Sonoma 14.5+, and macOS Sequoia.

*--swap* '<WINDOW_SEL>'::
Swap position of the selected window and the given window.
Expand Down
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.16"
#define OSAX_VERSION "2.1.17"

#define OSAX_ATTRIB_DOCK_SPACES 0x01
#define OSAX_ATTRIB_DPPM 0x02
Expand Down
2 changes: 1 addition & 1 deletion src/osax/x86_64/payload.m
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ uint64_t get_set_front_window_offset(NSOperatingSystemVersion os_version) {

const char *get_remove_space_pattern(NSOperatingSystemVersion os_version) {
if (os_version.majorVersion == 15) {
return "55 48 89 E5 41 57 41 56 41 55 41 54 53 48 83 EC 68 49 89 CC 49 89 D6 49 89 F5 49 89 FF 48 BB F8 FF FF FF FF FF FF 00 E8 ?? 19 09 00 48 89 C1 48 B8 01 00 00 00 00 00 00 40 48 21 CB 48 85 C1 0F 85 74 02 00 00 48 8B 43 10 48 83 F8 02 0F 8C E8 01 00";
return "55 48 89 E5 41 57 41 56 41 55 41 54 53 48 83 EC 68 49 89 CC 49 89 D6 49 89 F5 49 89 FF 48 BB F8 FF FF FF FF FF FF 00 E8 ?? ?? 09 00 48 89 C1 48 B8 01 00 00 00 00 00 00 40 48 21 CB 48 85 C1 0F 85 74 02 00 00 48 8B 43 10 48 83 F8 02 0F 8C E8 01 00";
} else if (os_version.majorVersion == 14) {
return "55 48 89 E5 41 57 41 56 41 55 41 54 53 48 83 EC 68 48 89 4D ?? 49 89 D7 49 89 F5 49 89 FC 48 BB F8 FF FF FF FF FF FF 00 E8 ?? ?? ?? FF 49 89 C6 48 B8 01 00 00 00 00 00 00 40 4C 21 F3 49 85 C6 0F 85 ?? 02 00 00 48 8B 43 10 48 83 F8 02 0F 8C ?? 02 00 00 4C 89 6D ?? 4C 89 75 A0 48 8D 05 ?? ?? ?? 00 48 8B 00 49 8B 1C 04 4D 8B 74 04 08 48 8D 05 ?? ?? ?? 00 48 8B 38 48 8B 35 ?? ?? ??";
} else if (os_version.majorVersion == 13) {
Expand Down

0 comments on commit 27f4423

Please sign in to comment.