aboutsummaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'window.c')
-rw-r--r--window.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/window.c b/window.c
index 77ecc7a..9136339 100644
--- a/window.c
+++ b/window.c
@@ -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);