summaryrefslogtreecommitdiff
path: root/src/bar.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-09-21 21:30:52 +0000
committersabetts <sabetts>2003-09-21 21:30:52 +0000
commitd51ea7ebc8ffcefc1926165b482b087e06f7a36e (patch)
tree28c2f962dd793dd1914cb231b406720ac0c09220 /src/bar.c
parent48c9c4eb8d5d73fd5ed8b0626dfd354339c3865b (diff)
downloadratpoison-d51ea7ebc8ffcefc1926165b482b087e06f7a36e.zip
(prepare_bar): move and resize the window before mapping it.
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);