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:
1 parent
6e900b43ec
commit
f7d46cf7d0
1 file changed
+9
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user