WindowServer: Always activate newly added windows.

This feels a lot better than new windows popping in inactive state.
This commit is contained in:
Andreas Kling 2019-04-09 16:25:14 +02:00
commit 4ba5e472be
Notes: sideshowbarker 2024-07-19 14:47:14 +09:00

View file

@ -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();