diff options
author | Bart Massey <bart@cs.pdx.edu> | 2007-12-08 13:29:19 -0800 |
---|---|---|
committer | Arnaud Fontaine <arnau@debian.org> | 2010-11-14 19:49:48 +0900 |
commit | 8b825188a070abef9767bc199868ae5bfc79068c (patch) | |
tree | dd9b90a655a21e8a73e7f0a3ba85cec5ad18f5b4 | |
parent | 08e3c71b1ad0b75bd4231c23bb143e81b4d64473 (diff) |
added aux_clear_window() for xlib compatibility, in spite of misgivings
-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 } |