fix: x11 linking and incorrect variable name
This commit is contained in:
parent
4bbcfb2f10
commit
0d4b3e3d2b
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -1,7 +1,7 @@
|
||||||
CC = gcc
|
CC = gcc
|
||||||
AR = ar
|
AR = ar
|
||||||
|
|
||||||
DEPS = json-c
|
DEPS = json-c x11
|
||||||
|
|
||||||
CFLAGS = -Iinclude -Wall -O2 $(shell pkg-config --cflags $(DEPS))
|
CFLAGS = -Iinclude -Wall -O2 $(shell pkg-config --cflags $(DEPS))
|
||||||
LDFLAGS = $(shell pkg-config --libs $(DEPS))
|
LDFLAGS = $(shell pkg-config --libs $(DEPS))
|
||||||
|
|
|
@ -32,7 +32,7 @@ static ukb_err_t update_current_layout() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int num_groups = desc_ptr->ctrls->num_groups;
|
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.");
|
UKB_ERR("Group index out of range.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue