summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Massey <bart@cs.pdx.edu>2007-12-08 13:29:19 -0800
committerBart Massey <bart@cs.pdx.edu>2007-12-08 13:29:19 -0800
commit0a2f79698781d4576a5b6c6086318212108b4eb4 (patch)
treedacd39ac221eb04aa9bcd799466b4af6dba1e7e6
parent5384e3cfc3a1a484822f6e5d44b4247e42dd793e (diff)
added aux_clear_window() for xlib compatibility, in spite of misgivings
-rw-r--r--aux/xcb_aux.c10
-rw-r--r--aux/xcb_aux.h3
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
}