```
<menu>
<ignoreButtonReleasePeriod>250</ignoreButtonReleasePeriod>
+ <showIcons>yes</showIcons>
</menu>
```
option has been exposed for unusual use-cases. It is equivalent to
Openbox's `<hideDelay>`. Default is 250 ms.
+*<menu><showIcons>*
+ Show menu icons based on the `icon` attribute of menu label elements.
+ Default is yes. Requires libsfdo. If labwc is built without it, no
+ icons will be shown.
+
## MAGNIFIER
```
<menu>
<ignoreButtonReleasePeriod>250</ignoreButtonReleasePeriod>
+ <showIcons>yes</showIcons>
</menu>
<!--
/* Menu */
unsigned int menu_ignore_button_release_period;
+ bool menu_show_icons;
/* Magnifier */
int mag_width;
tablet_get_dbl_if_positive(content, "relativeMotionSensitivity");
} else if (!strcasecmp(nodename, "ignoreButtonReleasePeriod.menu")) {
rc.menu_ignore_button_release_period = atoi(content);
+ } else if (!strcasecmp(nodename, "showIcons.menu")) {
+ set_bool(content, &rc.menu_show_icons);
} else if (!strcasecmp(nodename, "width.magnifier")) {
rc.mag_width = atoi(content);
} else if (!strcasecmp(nodename, "height.magnifier")) {
rc.workspace_config.min_nr_workspaces = 1;
rc.menu_ignore_button_release_period = 250;
+ rc.menu_show_icons = true;
rc.mag_width = 400;
rc.mag_height = 400;
"nodename: '%s' content: '%s'", nodename, content);
} else if (!strcmp(nodename, "icon")) {
#if HAVE_LIBSFDO
- // TODO: add some rc.menu_icons bool
- if (true && !string_null_or_empty(content)) {
+ if (rc.menu_show_icons && !string_null_or_empty(content)) {
xstrdup_replace(current_item->icon_name, content);
current_menu->has_icons = true;
}