From e4b9aed49eb5464c631960627b63ef703e6e20a4 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Wed, 15 Nov 2023 23:53:55 +0100 Subject: Refine connection event dispatcher --- connection.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'connection.h') diff --git a/connection.h b/connection.h index 6d0a0cf..1cb0160 100644 --- a/connection.h +++ b/connection.h @@ -8,9 +8,10 @@ #include #include +typedef struct Connection Connection; // TODO: Make this opaque -typedef struct { +struct Connection { xcb_connection_t *connection; xcb_screen_t *screen; xcb_randr_screen_size_t *screen_size; @@ -21,7 +22,7 @@ typedef struct { xcb_errors_context_t *errors; xcb_ewmh_connection_t ewmh; GSource *source; -} Connection; +}; Connection *connection_create(); -- cgit v1.2.3