Bugfix: Don’t hide assigned clients to inactive but visible workspaces (Thanks xeen)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user