mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 04:54:14 +01:00
Fix switch to prev ws on handle_view_created
Switching back to original workspace should be done only if workspace was switched while appending new view.
This commit is contained in:
parent
2a8cc8645b
commit
aa292db8d1
@ -410,7 +410,7 @@ static bool handle_view_created(wlc_handle handle) {
|
||||
}
|
||||
wlc_view_set_mask(handle, VISIBLE);
|
||||
|
||||
if (return_to_workspace && current_ws) {
|
||||
if (return_to_workspace && current_ws != swayc_active_workspace()) {
|
||||
// we were on one workspace, switched to another to add this view,
|
||||
// now let's return to where we were
|
||||
workspace_switch(current_ws);
|
||||
|
Loading…
Reference in New Issue
Block a user