From 9dd5d4ba9e05ae855b23c5ff6ddb967e6618d04b Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Mon, 10 Dec 2018 15:52:34 -0500 Subject: [PATCH] Fixed dependency tracking --- Makefile | 2 +- src/pick.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 204af3d..9a805de 100644 --- a/Makefile +++ b/Makefile @@ -57,4 +57,4 @@ bin/%: src/%.o $(LD) -o $@ $^ $(LDFLAGS) # load generate dependencies --include *.d lib/*.d tests/*.d tests/lib/*.d +-include src/*.d src/lib/*.d tests/*.d tests/lib/*.d diff --git a/src/pick.c b/src/pick.c index c7f78e2..70517a1 100644 --- a/src/pick.c +++ b/src/pick.c @@ -142,6 +142,9 @@ static void draw_rect(XConf* x, int color, int px, int py, int width, int height static void redraw(XConf* x) { draw_rect(x, 0x0, 0, 0, x->width, x->height); + XCopyArea(x->display, x->pixmap, x->self, x->gc, 0, 0, x->width, x->height, 0, 0); + XFlush(x->display); + } void filter(void) { -- 2.52.0