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 a622401..5dedac9 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -367,6 +367,10 @@ correct_mark (int msg_len, int *mark_start, int *mark_end)
static void
prepare_bar (rp_screen *s, int width, int height)
{
+ XMoveResizeWindow (dpy, s->bar_window,
+ bar_x (s, width), bar_y (s, height),
+ width, height);
+
/* Map the bar if needed */
if (!s->bar_is_raised)
{
@@ -374,10 +378,6 @@ prepare_bar (rp_screen *s, int width, int height)
XMapRaised (dpy, s->bar_window);
}
- XMoveResizeWindow (dpy, s->bar_window,
- bar_x (s, width), bar_y (s, height),
- width, height);
-
XRaiseWindow (dpy, s->bar_window);
XClearWindow (dpy, s->bar_window);
XSync (dpy, False);