forked from external/yambar
module/i3: fix crash when there is no "current" workspace template
This commit is contained in:
parent
4d9ee6ff82
commit
6e44d8e04e
1 changed files with 2 additions and 1 deletions
|
@ -798,6 +798,7 @@ content(struct module *mod)
|
||||||
|
|
||||||
if (ws->focused) {
|
if (ws->focused) {
|
||||||
const struct ws_content *cur = ws_content_for_name(m, "current");
|
const struct ws_content *cur = ws_content_for_name(m, "current");
|
||||||
|
if (cur != NULL)
|
||||||
current = cur->content->instantiate(cur->content, &tags);
|
current = cur->content->instantiate(cur->content, &tags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue