diff options
author | Bart Massey <bart@cs.pdx.edu> | 2007-12-08 13:29:19 -0800 |
---|---|---|
committer | Bart Massey <bart@cs.pdx.edu> | 2007-12-08 13:29:19 -0800 |
commit | 61c711cc0a54df8840837b40447e4719be8d670d (patch) | |
tree | 67d418d93aab129dd1d10009c680a818f4f0cdf7 /aux | |
parent | a7f15f02049c10adee0a2866fb7855be44e9f944 (diff) |
added aux_clear_window() for xlib compatibility, in spite of misgivings
Diffstat (limited to 'aux')
-rw-r--r-- | aux/xcb_aux.c | 10 | ||||
-rw-r--r-- | aux/xcb_aux.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/aux/xcb_aux.c b/aux/xcb_aux.c index f152669..3602afa 100644 --- a/aux/xcb_aux.c +++ b/aux/xcb_aux.c @@ -323,3 +323,13 @@ xcb_aux_set_line_attributes_checked (xcb_connection_t *dpy, XCB_AUX_ADD_PARAM(&mask, &gv, join_style, joinstyle); return xcb_aux_change_gc_checked(dpy, gc, mask, &gv); } + +/* Adapted from Xlib */ +/* XXX It would be wiser for apps just to call + clear_area() directly. */ +xcb_void_cookie_t +xcb_aux_clear_window(xcb_connection_t * dpy, + xcb_window_t w) +{ + return xcb_clear_area(dpy, 0, w, 0, 0, 0, 0); +} diff --git a/aux/xcb_aux.h b/aux/xcb_aux.h index fce1f9e..952b0c3 100644 --- a/aux/xcb_aux.h +++ b/aux/xcb_aux.h @@ -188,6 +188,9 @@ xcb_aux_set_line_attributes_checked (xcb_connection_t *dpy, int32_t capstyle, int32_t joinstyle); +xcb_void_cookie_t +xcb_aux_clear_window(xcb_connection_t * dpy, + xcb_window_t w); #ifdef __cplusplus } |