fix: x11 linking and incorrect variable name

This commit is contained in:
mrsobakin 2025-05-12 08:24:40 +03:00
parent 4bbcfb2f10
commit 0d4b3e3d2b
No known key found for this signature in database
GPG key ID: 325CBF665E4FFD6E
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
CC = gcc
AR = ar
DEPS = json-c
DEPS = json-c x11
CFLAGS = -Iinclude -Wall -O2 $(shell pkg-config --cflags $(DEPS))
LDFLAGS = $(shell pkg-config --libs $(DEPS))

View file

@ -32,7 +32,7 @@ static ukb_err_t update_current_layout() {
}
int num_groups = desc_ptr->ctrls->num_groups;
if (xkbState.group >= num_groups) {
if (xkb_state.group >= num_groups) {
UKB_ERR("Group index out of range.");
}