From f8363e89257e8b0a4ff71accbd7b6be22935274f Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Fri, 17 Nov 2023 15:07:14 +0100 Subject: Attach state to the event loop --- window.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'window.h') diff --git a/window.h b/window.h index 009966a..5ee075f 100644 --- a/window.h +++ b/window.h @@ -7,6 +7,15 @@ typedef struct Window Window; +struct Window { + Connection *con; + xcb_drawable_t window; + cairo_surface_t *surface; + cairo_t *cr; + int x, y; + int width, height; +}; + Window *window_create(Connection *con); cairo_t *window_get_context(Window *win); -- cgit v1.2.3