Skip to content

Commit

Permalink
WindowServer: Always activate newly added windows.
Browse files Browse the repository at this point in the history
This feels a lot better than new windows popping in inactive state.
  • Loading branch information
awesomekling committed Apr 9, 2019
1 parent 151b714 commit 4ba5e47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Servers/WindowServer/WSWindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,7 @@ void WSWindowManager::add_window(WSWindow& window)
{
m_windows.set(&window);
m_windows_in_order.append(&window);
if (!active_window() || active_window()->client() == window.client())
set_active_window(&window);
set_active_window(&window);
if (m_switcher.is_visible() && window.type() != WSWindowType::WindowSwitcher)
m_switcher.refresh();

Expand Down

0 comments on commit 4ba5e47

Please sign in to comment.