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:
parent
7633775eed
commit
f1c23c5bfa
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue