aboutsummaryrefslogtreecommitdiff
path: root/connection.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2023-11-17 00:19:53 +0100
committerFederico Angelilli <code@fedang.net>2023-11-17 00:50:05 +0100
commitf28d0af32e28005a4b28857fa4fd4232d6849442 (patch)
tree390ba9ea0e4647c17da1e44d203e97053558650f /connection.h
parent68ca7d2e289290f3142fda529d67c5e87a0b6c30 (diff)
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
Diffstat (limited to 'connection.h')
-rw-r--r--connection.h2
1 files changed, 1 insertions, 1 deletions
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;