fix: repair XIM context lifecycle

This commit is contained in:
2026-08-12 15:56:43 +09:00
parent 103f2ec448
commit 1295480858
6 changed files with 181 additions and 43 deletions

View File

@@ -6,6 +6,7 @@ PROG = strans-xim
SRCS = $(wildcard *.c)
OBJS = $(SRCS:.c=.o)
TEST = xim_test
all: $(PROG)
@@ -14,7 +15,13 @@ $(PROG): $(OBJS) ../ipc.c ../ipc.h
$(OBJS): ../ipc.h
clean:
rm -f $(OBJS) $(PROG)
$(TEST): ../tests/xim_test.c keymap.c keymap.h
$(CC) $(CFLAGS) -o $@ ../tests/xim_test.c keymap.c $(XIM_LIBS)
.PHONY: all clean
check: $(TEST)
./$(TEST)
clean:
rm -f $(OBJS) $(PROG) $(TEST)
.PHONY: all check clean