浏览代码

WindowServer: Unbreak "pick new active window" algorithm

We lost the ability to pick a suitable new active window when I added
the support for tool windows.
Andreas Kling 4 年之前
父节点
当前提交
c4438d6fd4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Services/WindowServer/WindowManager.cpp

+ 1 - 1
Userland/Services/WindowServer/WindowManager.cpp

@@ -418,7 +418,7 @@ bool WindowManager::pick_new_active_window(Window* previous_active)
     bool new_window_picked = false;
     Window* first_candidate = nullptr;
     for_each_visible_window_from_front_to_back([&](Window& candidate) {
-        if (candidate.type() != WindowType::Normal && candidate.type() == WindowType::ToolWindow)
+        if (candidate.type() != WindowType::Normal && candidate.type() != WindowType::ToolWindow)
             return IterationDecision::Continue;
         if (candidate.is_destroyed())
             return IterationDecision::Continue;