Merge pull request #838 from thejan2009/bug/workspace-switch-bug

Fix switch to prev ws on handle_view_created
This commit is contained in:
Drew DeVault 2016-08-05 07:48:23 -04:00 committed by GitHub
commit 072984de9e

View file

@ -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);