summaryrefslogtreecommitdiff
path: root/src/bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bar.c')
-rw-r--r--src/bar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bar.c b/src/bar.c
index fc7e8c2..8e34d25 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -186,15 +186,15 @@ marked_message (char *msg, int mark_start, int mark_end)
width,
height);
- XClearWindow (dpy, s->bar_window);
XRaiseWindow (dpy, s->bar_window);
-
+ XClearWindow (dpy, s->bar_window);
+ XSync (dpy, False);
XDrawString (dpy, s->bar_window, s->normal_gc,
defaults.bar_x_padding,
defaults.bar_y_padding + defaults.font->max_bounds.ascent,
msg, strlen (msg));
-
-
+ XSync (dpy, False);
+
/* Crop to boundary conditions. */
if (mark_start < 0)
mark_start = 0;