diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-17 00:19:53 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-17 00:50:05 +0100 |
| commit | f28d0af32e28005a4b28857fa4fd4232d6849442 (patch) | |
| tree | 390ba9ea0e4647c17da1e44d203e97053558650f /window.c | |
| parent | 68ca7d2e289290f3142fda529d67c5e87a0b6c30 (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 'window.c')
| -rw-r--r-- | window.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -149,13 +149,14 @@ Window *window_create(Connection *con) win->window = xcb_generate_id(con->connection); xcb_create_window(con->connection, - XCB_COPY_FROM_PARENT, - win->window, con->screen->root, + con->screen_depth, + win->window, + con->screen->root, win->x, win->y, win->width, win->height, 0, // border - XCB_WINDOW_CLASS_INPUT_OUTPUT, - con->screen->root_visual, + XCB_WINDOW_CLASS_COPY_FROM_PARENT, + con->visual_type->visual_id, value_mask, value_list); |
