Merge pull request #3074 from orestisf1993/issue-2921

Fix workspace_show-related issues
This commit is contained in:
Ingo Bürk 2017-12-09 15:52:01 +01:00 committed by GitHub
commit 9d2d602d60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -449,6 +449,7 @@ bool floating_maybe_reassign_ws(Con *con) {
Con *ws = TAILQ_FIRST(&(content->focus_head));
DLOG("Moving con %p / %s to workspace %p / %s\n", con, con->name, ws, ws->name);
con_move_to_workspace(con, ws, false, true, false);
workspace_show(ws);
con_focus(con_descend_focused(con));
return true;
}

View File

@ -565,10 +565,9 @@ static bool _tree_next(Con *con, char way, orientation_t orientation, bool wrap)
focus = con_descend_focused(workspace);
}
if (focus) {
con_focus(focus);
x_set_warp_to(&(focus->rect));
}
workspace_show(workspace);
con_focus(focus);
x_set_warp_to(&(focus->rect));
return true;
}