mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
osd: add window-switcher field content types (#1623)
...`workspace`, `state`, `type_short` and `output`.
Example usage:
<windowSwitcher allWorkspaces="yes">
<fields>
<field content="workspace" width="5%" />
<field content="state" width="3%" />
<field content="type_short" width="3%" />
<field content="output" width="9%" />
<field content="identifier" width="30%" />
<field content="title" width="50%" />
</fields>
</windowSwitcher>
This commit is contained in:
parent
901240b321
commit
b0c2ac1a6d
5 changed files with 77 additions and 0 deletions
|
|
@ -207,6 +207,14 @@ fill_window_switcher_field(char *nodename, char *content)
|
|||
current_field->content = LAB_FIELD_TRIMMED_IDENTIFIER;
|
||||
} else if (!strcmp(content, "title")) {
|
||||
current_field->content = LAB_FIELD_TITLE;
|
||||
} else if (!strcmp(content, "workspace")) {
|
||||
current_field->content = LAB_FIELD_WORKSPACE;
|
||||
} else if (!strcmp(content, "state")) {
|
||||
current_field->content = LAB_FIELD_WIN_STATE;
|
||||
} else if (!strcmp(content, "type_short")) {
|
||||
current_field->content = LAB_FIELD_TYPE_SHORT;
|
||||
} else if (!strcmp(content, "output")) {
|
||||
current_field->content = LAB_FIELD_OUTPUT;
|
||||
} else {
|
||||
wlr_log(WLR_ERROR, "bad windowSwitcher field '%s'", content);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue