From 2a29d0ec8dddd19bcd63097f7c894fdb949db126 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Sun, 26 Jan 2020 12:28:11 +0100 Subject: [PATCH] #382 don't add window to window-tree when moved to a different space while minimized --- CHANGELOG.md | 1 + src/window_manager.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6413fa06..34ac74b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [Unreleased] ### Changed - Ignore minimized windows when an application is unhidden (required by some applications like Chrome..) [#300](https://github.com/koekeishiya/yabai/issues/300) +- Don't add window to the window tree when moved to a different space when the window is minimized (required by some applications like Chrome..) [#382](https://github.com/koekeishiya/yabai/issues/382) ## [2.2.2] - 2020-01-20 ### Changed diff --git a/src/window_manager.c b/src/window_manager.c index df8fc333..757e89c8 100644 --- a/src/window_manager.c +++ b/src/window_manager.c @@ -1257,7 +1257,7 @@ void window_manager_send_window_to_space(struct space_manager *sm, struct window space_manager_move_window_to_space(dst_sid, window); - if (window_manager_should_manage_window(window)) { + if (window_manager_should_manage_window(window) && !window->is_minimized) { struct view *view = space_manager_tile_window_on_space(sm, window, dst_sid); window_manager_add_managed_window(wm, window, view); }