1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

When query theme for exact match, do not consider state.

This commit is contained in:
Dave Davenport 2017-04-11 21:11:09 +02:00
parent 7633775eed
commit f1c23c5bfa

View file

@ -463,7 +463,8 @@ int rofi_theme_get_integer ( const widget *widget, const char *property, int def
}
int rofi_theme_get_integer_exact ( const widget *widget, const char *property, int def )
{
ThemeWidget *wid = rofi_theme_find_widget ( widget->name, widget->state, TRUE );
// State is note considered when doing exact match, only base name.
ThemeWidget *wid = rofi_theme_find_widget ( widget->name, NULL, TRUE );
Property *p = rofi_theme_find_property ( wid, P_INTEGER, property, TRUE );
if ( p ) {
return p->value.i;