1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27:35 +00:00

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
parent 151b7149e6
commit 4ba5e472be

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