summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-06-15 14:15:48 +0200
committerBert Münnich <ber.t@posteo.de>2014-06-15 14:15:48 +0200
commit5d0679b855bb42aaaf3435a3182ac5ddb4412e1f (patch)
tree9ad0b6263415699d9f0558b5bab4d6943356fea8 /window.c
parent5cfae636206df6f6f36d004f7dc66bcfb6d4a52c (diff)
downloadnsxiv-5d0679b855bb42aaaf3435a3182ac5ddb4412e1f.tar.zst
Show key handler status in bar while it is running
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/window.c b/window.c
index 3cf4379..a0a8d80 100644
--- a/window.c
+++ b/window.c
@@ -481,6 +481,7 @@ void win_draw(win_t *win)
XCopyArea(win->env.dpy, win->pm, win->xwin, gc,
0, 0, win->w, win->h + win->bar.h, 0, 0);
+ XFlush(win->env.dpy);
}
void win_draw_rect(win_t *win, Pixmap pm, int x, int y, int w, int h,
@@ -510,6 +511,7 @@ void win_update_bar(win_t *win)
win_draw_bar(win);
XCopyArea(win->env.dpy, win->pm, win->xwin, gc,
0, win->h, win->w, win->bar.h, 0, win->h);
+ XFlush(win->env.dpy);
}
}