diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-02 22:13:17 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-02 22:13:17 +0100 |
| commit | 99ca49947936207276e4c97dd21201027e0ad182 (patch) | |
| tree | ea0b6e56e9a50010131bcc44bdaec1ea2cdda0a3 /x11.c | |
| parent | 31bff49ef9c5e9ee6079e369e3b4d90c447f8d0b (diff) | |
Add logging functions
Diffstat (limited to 'x11.c')
| -rw-r--r-- | x11.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -60,7 +60,7 @@ Window *window_create(void) y, x, h, w, 0, XCB_WINDOW_CLASS_INPUT_OUTPUT, win->screen->root_visual, - XCB_CW_BACK_PIXEL, + XCB_CW_BACK_PIXEL, //XCB_CW_BACK_PIXEL | XCB_CW_BACK_PIXMAP | XCB_CW_OVERRIDE_REDIRECT | // XCB_CW_BORDER_PIXEL | XCB_CW_EVENT_MASK | XCB_CW_COLORMAP, &win->screen->white_pixel); @@ -89,6 +89,8 @@ done: win->surface = cairo_xcb_surface_create(win->connection, win->window, win->visual_type, w, h); win->cr = cairo_create(win->surface); + log_debug("Cairo initialized"); + return win; } |
