[swindow] Store border width

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-03 11:23:25 +02:00
parent c88b0b15ff
commit 0e1747587c
2 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,8 @@ simplewindow_new(xcb_connection_t *conn, int phys_screen, int x, int y,
sw->gc = xcb_generate_id(sw->connection);
xcb_create_gc(sw->connection, sw->gc, gc_draw, gc_mask, gc_values);
sw->border = border_width;
return sw;
}

View File

@ -33,6 +33,7 @@ typedef struct simple_window_t
xcb_drawable_t drawable;
xcb_gcontext_t gc;
area_t geometry;
int border;
} simple_window_t;
simple_window_t * simplewindow_new(xcb_connection_t *, int, int, int, unsigned int, unsigned int, unsigned int);