mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
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:
parent
6e900b43ec
commit
f7d46cf7d0
1 changed files with 9 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue