action: rename "omnipresent" button options for Openbox compatibility

- Mouse context "Omnipresent" -> "AllDesktops"
- Theme elements "window.*.button.omnipresent" -> "window.*.button.desk"
- Update documentation accordingly
This commit is contained in:
Andrew J. Hesford 2024-08-25 00:00:24 -04:00 committed by Consolatis
parent dda47a5e14
commit 1bcaf8255f
6 changed files with 22 additions and 16 deletions

View file

@ -116,7 +116,7 @@ context_from_str(const char *str)
return LAB_SSD_BUTTON_WINDOW_MENU;
} else if (!strcasecmp(str, "Shade")) {
return LAB_SSD_BUTTON_SHADE;
} else if (!strcasecmp(str, "Omnipresent")) {
} else if (!strcasecmp(str, "AllDesktops")) {
return LAB_SSD_BUTTON_OMNIPRESENT;
} else if (!strcasecmp(str, "Titlebar")) {
return LAB_SSD_PART_TITLEBAR;

View file

@ -793,7 +793,7 @@ entry(struct theme *theme, const char *key, const char *value)
parse_hexstr(value,
theme->window_active_button_shade_unpressed_image_color);
}
if (match_glob(key, "window.active.button.omnipresent.unpressed.image.color")) {
if (match_glob(key, "window.active.button.desk.unpressed.image.color")) {
parse_hexstr(value,
theme->window_active_button_omnipresent_unpressed_image_color);
}
@ -817,7 +817,7 @@ entry(struct theme *theme, const char *key, const char *value)
parse_hexstr(value,
theme->window_inactive_button_shade_unpressed_image_color);
}
if (match_glob(key, "window.inactive.button.omnipresent.unpressed.image.color")) {
if (match_glob(key, "window.inactive.button.desk.unpressed.image.color")) {
parse_hexstr(value,
theme->window_inactive_button_omnipresent_unpressed_image_color);
}