mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-22 12:25:38 +02:00
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,7 +798,8 @@ content(struct module *mod)
|
|||
|
||||
if (ws->focused) {
|
||||
const struct ws_content *cur = ws_content_for_name(m, "current");
|
||||
current = cur->content->instantiate(cur->content, &tags);
|
||||
if (cur != NULL)
|
||||
current = cur->content->instantiate(cur->content, &tags);
|
||||
}
|
||||
|
||||
if (template == NULL) {
|
||||
|
|
Loading…
Add table
Reference in a new issue