sidebar: Move to new workspace non-Wayland (#54055)

We were just creating a window without showing it. However, wayland does
not respect this setting, so it seemed to work.

Now we actually activate the window :)

Rather than changing the single call-site, we always do this when
calling `Workspace::new_local`, since there were no code paths in the
repo that pass `NewWindow` without immediately activating it

Release Notes:

- N/A or Added/Fixed/Improved ...
This commit is contained in:
Cameron Mcloughlin 2026-04-21 17:09:55 +01:00 committed by GitHub
parent 6e900b43ec
commit f7d46cf7d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2092,6 +2092,15 @@ impl Workspace {
});
})
.log_err();
if open_mode == OpenMode::NewWindow {
window
.update(cx, |_, window, _cx| {
window.activate_window();
})
.log_err();
}
Ok(OpenResult {
window,
workspace,