Skip to content

Commit

Permalink
#133 allow window focus command to work without the existence of a fo…
Browse files Browse the repository at this point in the history
…cused window
koekeishiya committed Jul 14, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f1a27ed commit 46a46d7
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Changed
- Float native macOS fullscreen spaces [#130](https://github.com/koekeishiya/yabai/issues/130)
- Write error messsages returned to the client through *stderr* [#131](https://github.com/koekeishiya/yabai/issues/131)
- Allow window focus command to work without the existence of a focused window [#133](https://github.com/koekeishiya/yabai/issues/133)

## [1.1.1] - 2019-07-14
### Changed
2 changes: 1 addition & 1 deletion src/message.c
Original file line number Diff line number Diff line change
@@ -1274,7 +1274,7 @@ static void handle_domain_window(FILE *rsp, struct token domain, char *message)
command = selector.token;
}

if (!acting_window) {
if (!acting_window && !token_equals(command, COMMAND_WINDOW_FOCUS)) {
daemon_fail(rsp, "could not locate the window to act on!\n");
return;
}

0 comments on commit 46a46d7

Please sign in to comment.