From 0d4b3e3d2bb6f76e31de65fe5f6f83d83e57b82f Mon Sep 17 00:00:00 2001 From: mrsobakin <68982655+mrsobakin@users.noreply.github.com> Date: Mon, 12 May 2025 08:24:40 +0300 Subject: [PATCH] fix: x11 linking and incorrect variable name --- Makefile | 2 +- src/backends/xorg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 702edec..9a8818d 100644 --- a/Makefile +++ b/Makefile @@ -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)) diff --git a/src/backends/xorg.c b/src/backends/xorg.c index aebd709..dfb5459 100644 --- a/src/backends/xorg.c +++ b/src/backends/xorg.c @@ -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."); }