mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +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
Notes:
sideshowbarker
2024-07-19 14:47:14 +09:00
Author: https://github.com/awesomekling
Commit: 4ba5e472be
1 changed files with 1 additions and 2 deletions
|
@ -310,7 +310,6 @@ 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