summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-04-11 21:11:09 +0200
committerDave Davenport <qball@gmpclient.org>2017-04-11 21:11:09 +0200
commitf1c23c5bfa6883ae8c86c19fbad040bb18d3f8a8 (patch)
treedba8502e4431633dca76b981e29c22dc39abe138 /source
parent7633775eed75cc1c934be9a641558cc2b9d774b8 (diff)
When query theme for exact match, do not consider state.
Diffstat (limited to 'source')
-rw-r--r--source/theme.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/theme.c b/source/theme.c
index b2429c6f..a04e7079 100644
--- a/source/theme.c
+++ b/source/theme.c
@@ -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;