Bugfix: Assign all workspace to new outputs as new outputs get available (Thanks badboy)

This commit is contained in:
Michael Stapelberg
2010-03-26 00:13:28 +01:00
parent 1b8299002e
commit 6fd56757f0
2 changed files with 14 additions and 1 deletions

View File

@ -103,7 +103,7 @@ void workspace_set_name(Workspace *ws, const char *name) {
*
*/
bool workspace_is_visible(Workspace *ws) {
return (ws->output->current_workspace == ws);
return (ws->output != NULL && ws->output->current_workspace == ws);
}
/*