From f02047262ba4c235250a754e42af35690df16127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Holl=C3=B3s?= Date: Sun, 22 Nov 2020 11:36:37 +0100 Subject: [PATCH] remove not necessary variables and make it work without compositor --- main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.c b/main.c index 4bdd4bc..7b29ddf 100644 --- a/main.c +++ b/main.c @@ -123,7 +123,6 @@ void drawReminder(cairo_t* cr, int minRem){ previous = minRem - 1; } - float radius=10; for(int i = 0; i < 4; ++i){ cairo_arc(cr, x_pos[i], y_pos[i],10, 0, 2 * M_PI); cairo_set_source_rgb(cr, 0.5, 0.5, 0.5); /* set fill color */ @@ -213,7 +212,7 @@ int main() { 1 /* number of elements */ ); - /* XSetWindowBackgroundPixmap(d, w, pix); // If we do not have compositor :) */ + XSetWindowBackgroundPixmap(d, w, pix); // If we do not have compositor :) XClearWindow(d,w); XFlush(d); sleep(30);