Bugfix: Don’t hide assigned clients to inactive but visible workspaces (Thanks xeen)

This commit is contained in:
Michael Stapelberg
2009-08-02 22:31:52 +02:00
parent a753684ac5
commit 7cfe520755
4 changed files with 26 additions and 10 deletions

View File

@ -45,3 +45,13 @@ void workspace_set_name(Workspace *ws, const char *name) {
free(label);
}
/*
* Returns true if the workspace is currently visible. Especially important for
* multi-monitor environments, as they can have multiple currenlty active
* workspaces.
*
*/
bool workspace_is_visible(Workspace *ws) {
return (ws->screen->current_workspace == ws->num);
}