refactor workspace_show and friends

This commit is contained in:
Noe Rubinstein
2011-10-02 17:54:23 +02:00
committed by Michael Stapelberg
parent 29fb09ae74
commit 92cc4494aa
6 changed files with 37 additions and 29 deletions

View File

@ -632,7 +632,7 @@ void con_move_to_workspace(Con *con, Con *workspace, bool fix_coordinates, bool
* focused. Must do before attaching because workspace_show checks to see
* if focused container is in its area. */
if (workspace_is_visible(workspace)) {
workspace_show(workspace->name);
workspace_show(workspace);
/* Dont warp if told so (when dragging floating windows with the
* mouse for example) */
@ -668,7 +668,7 @@ void con_move_to_workspace(Con *con, Con *workspace, bool fix_coordinates, bool
/* Descend focus stack in case focus_next is a workspace which can
* occur if we move to the same workspace. Also show current workspace
* to ensure it is focused. */
workspace_show(con_get_workspace(focus_next)->name);
workspace_show(con_get_workspace(focus_next));
con_focus(con_descend_focused(focus_next));
}