WindowServer: Don't focus unfocusable windows on window creation
This commit is contained in:
parent
627c89a62d
commit
d458592fb1
|
@ -85,7 +85,10 @@ void WindowServer::on_window_create(int fd, const LibGUI::WindowPacket::WindowCr
|
||||||
|
|
||||||
window_popper.disable();
|
window_popper.disable();
|
||||||
|
|
||||||
|
if (packet.attributes.focusable)
|
||||||
set_focused_window(window);
|
set_focused_window(window);
|
||||||
|
else if (m_client_windows.size() > 1)
|
||||||
|
BAN::swap(m_client_windows[m_client_windows.size() - 1], m_client_windows[m_client_windows.size() - 2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WindowServer::on_window_invalidate(int fd, const LibGUI::WindowPacket::WindowInvalidate& packet)
|
void WindowServer::on_window_invalidate(int fd, const LibGUI::WindowPacket::WindowInvalidate& packet)
|
||||||
|
|
Loading…
Reference in New Issue