mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:27:43 +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:
parent
151b7149e6
commit
4ba5e472be
1 changed files with 1 additions and 2 deletions
|
@ -310,8 +310,7 @@ void WSWindowManager::add_window(WSWindow& window)
|
||||||
{
|
{
|
||||||
m_windows.set(&window);
|
m_windows.set(&window);
|
||||||
m_windows_in_order.append(&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)
|
if (m_switcher.is_visible() && window.type() != WSWindowType::WindowSwitcher)
|
||||||
m_switcher.refresh();
|
m_switcher.refresh();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue