i3bar: make modifier behave like floating_modifier
Pressed modifiers are determined like in click.c:handle_button_press. Fixes #3234.
This commit is contained in:
@ -119,6 +119,7 @@ static int config_string_cb(void *params_, const unsigned char *val, size_t _len
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Kept for backwards compatibility. */
|
||||
if (!strcmp(cur_key, "modifier")) {
|
||||
DLOG("modifier = %.*s\n", len, val);
|
||||
if (len == strlen("none") && !strncmp((const char *)val, "none", strlen("none"))) {
|
||||
@ -336,6 +337,12 @@ static int config_integer_cb(void *params_, long long val) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!strcmp(cur_key, "modifier")) {
|
||||
DLOG("modifier = %lld\n", val);
|
||||
config.modifier = (uint32_t)val;
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user