Merge pull request #3198 from orestisf1993/_workspace_show
_workspace_show -> workspace_show
This commit is contained in:
commit
a41912430a
|
@ -340,7 +340,7 @@ static void workspace_reassign_sticky(Con *con) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Callback to reset the urgent flag of the given con to false. May be started by
|
* Callback to reset the urgent flag of the given con to false. May be started by
|
||||||
* _workspace_show to avoid urgency hints being lost by switching to a workspace
|
* workspace_show to avoid urgency hints being lost by switching to a workspace
|
||||||
* focusing the con.
|
* focusing the con.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -360,7 +360,11 @@ static void workspace_defer_update_urgent_hint_cb(EV_P_ ev_timer *w, int revents
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _workspace_show(Con *workspace) {
|
/*
|
||||||
|
* Switches to the given workspace
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
void workspace_show(Con *workspace) {
|
||||||
Con *current, *old = NULL;
|
Con *current, *old = NULL;
|
||||||
Con *old_focus = focused;
|
Con *old_focus = focused;
|
||||||
|
|
||||||
|
@ -487,14 +491,6 @@ static void _workspace_show(Con *workspace) {
|
||||||
output_push_sticky_windows(old_focus);
|
output_push_sticky_windows(old_focus);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Switches to the given workspace
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
void workspace_show(Con *workspace) {
|
|
||||||
_workspace_show(workspace);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Looks up the workspace by name and switches to it.
|
* Looks up the workspace by name and switches to it.
|
||||||
*
|
*
|
||||||
|
@ -502,7 +498,7 @@ void workspace_show(Con *workspace) {
|
||||||
void workspace_show_by_name(const char *num) {
|
void workspace_show_by_name(const char *num) {
|
||||||
Con *workspace;
|
Con *workspace;
|
||||||
workspace = workspace_get(num, NULL);
|
workspace = workspace_get(num, NULL);
|
||||||
_workspace_show(workspace);
|
workspace_show(workspace);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue