aboutsummaryrefslogtreecommitdiff
path: root/aux.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-14 23:58:44 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-14 23:58:44 +0000
commita02ae8d65ea7f18b9052ee0c8580de9d110b3065 (patch)
treeabd4c21c54c7e942317029871ad1426187acb09a /aux.c
parent43ee45790a18bad360384b27ba91eaa73dfa76d6 (diff)
add redisplay func
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);
+}