Merge pull request #3074 from orestisf1993/issue-2921
Fix workspace_show-related issues
This commit is contained in:
commit
9d2d602d60
|
@ -449,6 +449,7 @@ bool floating_maybe_reassign_ws(Con *con) {
|
||||||
Con *ws = TAILQ_FIRST(&(content->focus_head));
|
Con *ws = TAILQ_FIRST(&(content->focus_head));
|
||||||
DLOG("Moving con %p / %s to workspace %p / %s\n", con, con->name, ws, ws->name);
|
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);
|
con_move_to_workspace(con, ws, false, true, false);
|
||||||
|
workspace_show(ws);
|
||||||
con_focus(con_descend_focused(con));
|
con_focus(con_descend_focused(con));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -565,10 +565,9 @@ static bool _tree_next(Con *con, char way, orientation_t orientation, bool wrap)
|
||||||
focus = con_descend_focused(workspace);
|
focus = con_descend_focused(workspace);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (focus) {
|
workspace_show(workspace);
|
||||||
con_focus(focus);
|
con_focus(focus);
|
||||||
x_set_warp_to(&(focus->rect));
|
x_set_warp_to(&(focus->rect));
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue