Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed May 25, 2021
2 parents 6ef3379 + 1f3b215 commit 6359cde
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 7 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ The *window_destroyed* signal is now triggered for windows that are implicitly d
### Removed
- The following signals have been removed: *mouse_up*, *mouse_down*, *mouse_dragged*, *mouse_moved*, *mission_control_check_for_exit*, *menu_opened*, *system_woke*, *daemon_message*

## [3.3.9] - 2021-05-25
### Changed
- Update scripting addition to support macOS 11.4

## [3.3.8] - 2021-04-28
### Changed
- Update scripting addition to support macOS 11.3
Expand Down Expand Up @@ -358,7 +362,8 @@ The *window_destroyed* signal is now triggered for windows that are implicitly d
### Added
- First official release

[Unreleased]: https://github.com/koekeishiya/yabai/compare/v3.3.8...HEAD
[Unreleased]: https://github.com/koekeishiya/yabai/compare/v3.3.9...HEAD
[3.3.9]: https://github.com/koekeishiya/yabai/compare/v3.3.8...v3.3.9
[3.3.8]: https://github.com/koekeishiya/yabai/compare/v3.3.7...v3.3.8
[3.3.7]: https://github.com/koekeishiya/yabai/compare/v3.3.6...v3.3.7
[3.3.6]: https://github.com/koekeishiya/yabai/compare/v3.3.5...v3.3.6
Expand Down
8 changes: 8 additions & 0 deletions doc/yabai.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
.\" Title: yabai
.\" Author: [see the "AUTHOR(S)" section]
.\" Generator: Asciidoctor 2.0.12
<<<<<<< HEAD
.\" Date: 2021-05-05
=======
.\" Date: 2021-05-25
>>>>>>> master
.\" Manual: Yabai Manual
.\" Source: Yabai
.\" Language: English
.\"
<<<<<<< HEAD
.TH "YABAI" "1" "2021-05-05" "Yabai" "Yabai Manual"
=======
.TH "YABAI" "1" "2021-05-25" "Yabai" "Yabai Manual"
>>>>>>> master
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.ss \n[.ss] 0
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 "1.0.29"
#define OSAX_VERSION "1.0.30"

#define OSAX_PAYLOAD_SUCCESS 0
#define OSAX_PAYLOAD_NOT_FOUND 1
Expand Down
2 changes: 1 addition & 1 deletion src/osax/sa.m
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ static int scripting_addition_perform_validation(bool loaded)

return PAYLOAD_STATUS_OUTDATED;
} else if ((attrib & OSAX_ATTRIB_ALL) != OSAX_ATTRIB_ALL) {
notify("scripting-addition", "payload doesn't support this macOS version!");
notify("scripting-addition", "payload (0x%X) doesn't support this macOS version!", attrib);
return PAYLOAD_STATUS_NO_ATTRIB;
} else {
notify("scripting-addition", "payload v%s", version);
Expand Down
6 changes: 3 additions & 3 deletions src/osax/x86_64/payload.m
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ uint64_t get_set_front_window_offset(NSOperatingSystemVersion os_version) {

const char *get_remove_space_pattern(NSOperatingSystemVersion os_version) {
if ((os_version.majorVersion == 11) || (os_version.majorVersion == 10 && os_version.minorVersion == 16)) {
if (os_version.majorVersion == 11 && os_version.minorVersion == 3) {
return "55 48 89 E5 41 57 41 56 41 55 41 54 53 48 81 EC C8 00 00 00 49 89 CC 49 89 D7 49 89 F5 49 89 FE E8 35 67 F4 FF 48 89 C3 48 B8 01 00 00 00 00 00 00 40 48 BF F8 FF FF FF FF FF FF 00 48 21 DF 48 85 C3 0F 85 0C 06 00 00 48 8B 47 10 48 83 F8 02 0F 8C 36 02 00 00 4C 89 65 A8 4C 89 AD 68 FF FF FF 48 89 5D A0 48 8D 05 EF BF 13 00 48 8B 00 4D";
if (os_version.majorVersion == 11 && os_version.minorVersion >= 3) {
return "55 48 89 E5 41 57 41 56 41 55 41 54 53 48 81 EC C8 00 00 00 49 89 CC 49 89 D7 49 89 F5 49 89 FE E8 ?? ?? F4 FF 48 89 C3 48 B8 01 00 00 00 00 00 00 40 48 BF F8 FF FF FF FF FF FF 00 48 21 DF 48 85 C3 0F 85 0C 06 00 00 48 8B 47 10 48 83 F8 02 0F 8C 36 02 00 00 4C 89 65 A8 4C 89 AD 68 FF FF FF 48 89 5D A0 48 8D 05 ?? ?? 13 00 48 8B 00 4D";
}
return "55 48 89 E5 41 57 41 56 41 55 41 54 53 48 83 EC 68 48 89 4D 98 49 89 D4 49 89 F6 49 89 FF 49 89 F5 E8 ?? ?? F3 FF 49 89 C5 48 B8 01 00 00 00 00 00 00 40 49 85 C5 0F 85 DE 03 00 00 48 B8 F8 FF FF FF FF FF FF 00 4C 21 E8 48 8B 58 10 48 83 FB 02 0F 8C CD 01 00 00 4C 89 75 A0 48 8D 05 ?? ?? ?? 00 48 8B 00 4D 8B 34 07 4C 89 E3 4D 8B 64 07";
} else if (os_version.minorVersion == 15) {
Expand All @@ -176,7 +176,7 @@ uint64_t get_set_front_window_offset(NSOperatingSystemVersion os_version) {

const char *get_move_space_pattern(NSOperatingSystemVersion os_version) {
if ((os_version.majorVersion == 11) || (os_version.majorVersion == 10 && os_version.minorVersion == 16)) {
if (os_version.majorVersion == 11 && os_version.minorVersion == 3) {
if (os_version.majorVersion == 11 && os_version.minorVersion >= 3) {
return "55 48 89 E5 41 57 41 56 41 55 41 54 53 48 83 EC 48 4C 89 E9 41 89 D5 49 89 F6 49 89 FF 48 8D 1D ?? ?? ?? 00 48 8B 03 4C 8B 24 07 4C 89 E7 48 89 4D A0 48 89 CE E8 ?? ?? 00 00 48 85 C0 74 ?? 48 8D 0D ?? ?? ?? 00 80 39 01 48 89 55 C8 48 89 45 A8 75 38 49 89 D5 49 83 C5 28 48 89 C3 48 89 C7";
}
return "55 48 89 E5 41 57 41 56 41 55 41 54 53 48 83 EC 48 4C 89 E9 41 89 D5 49 89 F6 49 89 FF 48 8D 1D ?? ?? ?? 00 48 8B 03 4C 8B 24 07 4C 89 E7 48 89 4D A0 48 89 CE E8 ?? ?? 00 00 48 85 C0 74 27 48 8D 0D ?? ?? ?? 00 80 39 01 48 89 55 C8 48 89 45 A8 75 1A 48 89 C7 4C 89 F6 49 89 D5 E8 ?? ?? F4";
Expand Down
2 changes: 1 addition & 1 deletion src/yabai.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#define MAJOR 3
#define MINOR 3
#define PATCH 8
#define PATCH 9

#define CONNECTION_CALLBACK(name) void name(uint32_t type, void *data, size_t data_length, void *context, int cid)
typedef CONNECTION_CALLBACK(connection_callback);
Expand Down

0 comments on commit 6359cde

Please sign in to comment.