From 19949f63207b41aa24f403ccca881d3d0d2c41a1 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Wed, 17 May 2023 12:02:08 +0200 Subject: Add to the list CherryWindow and not Window It is better to put in windows list the CherryWindow to avoid calling Xlib functions outside the CherryWindow context. In this way, we can change library more easily. --- src/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/window.c b/src/window.c index b4663be..7912bd0 100644 --- a/src/window.c +++ b/src/window.c @@ -50,7 +50,7 @@ cherry_window_new(void) None, NULL, 0, &hints); - clist_add(&(app->windows), &w->window_handler, sizeof(w->window_handler)); + clist_add(&(app->windows), w, sizeof(*w)); return w; } -- cgit v1.2.3