From d732ee79ae072ac90a025cdb63570555a06df340 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Tue, 25 Jun 2019 23:21:19 +0200 Subject: [PATCH] #70 window should not be added twice to the window-tree when deminimized on inactive display --- CHANGELOG.md | 1 + src/window_manager.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 871b9961..a16d6332 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Silence meaningless warning reported by the scripting-bridge framework [#55](https://github.com/koekeishiya/yabai/issues/55) - Extend definition of *WINDOW_SEL* to include *mouse*, targetting the window below the cursor [#66](https://github.com/koekeishiya/yabai/issues/66) - Allow all *config* (except *status_bar*) settings to be edited at runtime [#69](https://github.com/koekeishiya/yabai/issues/69) +- Window should not be added to the window-tree twice when deminimized on an inactive display [#70](https://github.com/koekeishiya/yabai/issues/70) ## [1.0.1] - 2019-06-23 ### Added diff --git a/src/window_manager.c b/src/window_manager.c index 163eddae..cb59dfbf 100644 --- a/src/window_manager.c +++ b/src/window_manager.c @@ -1264,6 +1264,7 @@ void window_manager_check_for_windows_on_space(struct space_manager *sm, struct for (int i = 0; i < window_count; ++i) { struct ax_window *window = window_manager_find_window(wm, window_list[i]); if (!window || !window_manager_should_manage_window(window)) continue; + if (window->is_minimized || window->application->is_hidden) continue; struct view *existing_view = window_manager_find_managed_window(wm, window); if (existing_view && existing_view->sid != sid) {