modules: implement description()

This commit is contained in:
Daniel Eklöf 2021-06-20 21:15:24 +02:00
parent 97d5570daf
commit ed2b8c4874
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
14 changed files with 116 additions and 0 deletions

View file

@ -608,6 +608,12 @@ ws_content_for_name(struct private *m, const char *name)
return NULL;
}
static const char *
description(struct module *mod)
{
return "i3/sway";
}
static struct exposable *
content(struct module *mod)
{
@ -710,6 +716,7 @@ i3_new(struct i3_workspaces workspaces[], size_t workspace_count,
mod->run = &run;
mod->destroy = &destroy;
mod->content = &content;
mod->description = &description;
return mod;
}