diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-15 23:28:02 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-15 23:28:02 +0100 |
| commit | 6ebf2ef9b1c0e08b2b1b3fec18839295014dd688 (patch) | |
| tree | 3a48d1b2cf6a8706fc8aec9299eb762f4ea27163 /window.c | |
| parent | 72719852caee7076227cc999d086e3847609dc1f (diff) | |
Ignore dpi temporalily since scaling does not work
Diffstat (limited to 'window.c')
| -rw-r--r-- | window.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -16,11 +16,8 @@ #include "window.h" #include "log.h" -// TODO: Event logic should be decoupled from Window logic -#include "draw.h" - struct Window { - Connection *con; + Connection *con; xcb_drawable_t window; cairo_surface_t *surface; cairo_t *cr; @@ -121,8 +118,8 @@ static void wm_setup(Window *win) Window *window_create(Connection *con) { Window *win = g_malloc0(sizeof(Window)); - g_assert_nonnull(win); - win->con = con; + g_assert_nonnull(win); + win->con = con; const uint32_t value_mask = XCB_CW_BACK_PIXMAP | XCB_CW_BACK_PIXEL | XCB_CW_BORDER_PIXEL | XCB_CW_OVERRIDE_REDIRECT | XCB_CW_EVENT_MASK | XCB_CW_COLORMAP; @@ -287,7 +284,6 @@ static void window_paint_corners(Window *win) cairo_set_source_rgba(cr, 0, 0, 0, 0); cairo_paint(cr); - // TODO: Decouple somewhat drawing and X11 cairo_set_source_rgba(cr, 1, 1, 1, 1); cairo_arc(cr, radius, radius, radius, 90.0 * degree, 270 * degree); cairo_arc(cr, win->width - radius, radius, radius, 270 * degree, 450 * degree); |
