From 46a46d758ddaec3c426fe849841a9f27b1943059 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Sun, 14 Jul 2019 23:31:08 +0200 Subject: [PATCH] #133 allow window focus command to work without the existence of a focused window --- CHANGELOG.md | 1 + src/message.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 76745ab9..674b0a81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/message.c b/src/message.c index 5728514a..f32d778f 100644 --- a/src/message.c +++ b/src/message.c @@ -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; }