From f28d0af32e28005a4b28857fa4fd4232d6849442 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Fri, 17 Nov 2023 00:19:53 +0100 Subject: Simplify visual type search and fix window depth Transparency started working due to the explicit selection of a depth (preferring 32 bit) instead of copying that of the root window --- connection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'connection.h') diff --git a/connection.h b/connection.h index 1cb0160..b187b7a 100644 --- a/connection.h +++ b/connection.h @@ -16,8 +16,8 @@ struct Connection { xcb_screen_t *screen; xcb_randr_screen_size_t *screen_size; double screen_dpi; + int screen_depth; xcb_visualtype_t *visual_type; - xcb_depth_t *depth; xcb_xrm_database_t *database; xcb_errors_context_t *errors; xcb_ewmh_connection_t ewmh; -- cgit v1.2.3