aboutsummaryrefslogtreecommitdiff
path: root/aux.c
diff options
context:
space:
mode:
Diffstat (limited to 'aux.c')
-rw-r--r--aux.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/aux.c b/aux.c
index 1f9ed0e..6a62db7 100644
--- a/aux.c
+++ b/aux.c
@@ -115,3 +115,16 @@ copy(Display *d, Drawable from, Drawable to, GC gc, XRectangle r, Drawable mask)
XCopyArea(d, from, to, gc, 0, 0, r.width, r.height, 0, 0);
XSetClipMask(d, gc, None);
}
+
+void
+redisplay(Display *d, Window w)
+{
+ XEvent event;
+
+ memset(&event, 0, sizeof(XEvent));
+ event.type = Expose;
+ event.xexpose.window = w;
+ XSendEvent(d, w, False, ExposureMask, &event);
+
+ XFlush(d);
+}