mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 12:35:41 +02:00
commit
459ca5616d
2 changed files with 11 additions and 0 deletions
|
@ -18,6 +18,8 @@
|
||||||
* doc: split up **yambar-modules**(5) into multiple man pages, one for
|
* doc: split up **yambar-modules**(5) into multiple man pages, one for
|
||||||
each module (https://codeberg.org/dnkl/yambar/issues/15).
|
each module (https://codeberg.org/dnkl/yambar/issues/15).
|
||||||
* fcft >= 2.4.0 is now required.
|
* fcft >= 2.4.0 is now required.
|
||||||
|
* sway-xkb: non-keyboard inputs are now ignored
|
||||||
|
(https://codeberg.org/dnkl/yambar/issues/51).
|
||||||
|
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|
|
@ -99,6 +99,15 @@ handle_input_reply(int type, const struct json_object *json, void *_mod)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const char *id = json_object_get_string(identifier);
|
const char *id = json_object_get_string(identifier);
|
||||||
|
|
||||||
|
struct json_object *type;
|
||||||
|
if (!json_object_object_get_ex(obj, "type", &type))
|
||||||
|
return false;
|
||||||
|
if (strcmp(json_object_get_string(type), "keyboard") != 0) {
|
||||||
|
LOG_DBG("ignoring non-keyboard input '%s'", id);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
struct input *input = NULL;
|
struct input *input = NULL;
|
||||||
for (size_t i = 0; i < m->num_inputs; i++) {
|
for (size_t i = 0; i < m->num_inputs; i++) {
|
||||||
struct input *maybe_input = &m->inputs[i];
|
struct input *maybe_input = &m->inputs[i];
|
||||||
|
|
Loading…
Add table
Reference in a new issue