summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--doc/ratpoison.texi16
-rw-r--r--src/bar.c8
3 files changed, 24 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 50fafd2..733dfd3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-09-21 Shawn Betts <sabetts@vcn.bc.ca>
+
+ * src/bar.c (prepare_bar): move and resize the window before mapping it.
+
2003-09-04 Shawn Betts <sabetts@vcn.bc.ca>
* src/actions.c (initialize_default_keybindings): use ROOT_KEYMAP
diff --git a/doc/ratpoison.texi b/doc/ratpoison.texi
index 54bd9b3..cc29633 100644
--- a/doc/ratpoison.texi
+++ b/doc/ratpoison.texi
@@ -677,6 +677,11 @@ This deletes the current window. You can access it with the @kbd{C-t k}
keystroke.
@end deffn
+@deffn Command newkmap @var{kmap}
+Delete the keymap, @var{kmap}.
+
+@end deffn
+
@deffn Command echo @var{text}
Display @var{text} as a message.
@end deffn
@@ -836,6 +841,11 @@ When called non-interactively with no arguments, the current setting is
returned.
@end deffn
+@deffn Command newkmap @var{kmap}
+Create a new keymap named @var{kmap}.
+
+@end deffn
+
@deffn Command newwm @var{window-manager}
This is a bad-bad command. It kills ratpoison and revives that
ugly rodent! Yuck! Avoid!
@@ -884,6 +894,12 @@ used for dual-head displays and multiple monitor setups.
Quit ratpoison.
@end deffn
+@deffn Command readkey @var{kmap}
+Read a key from the keyboard and execute the command associated with
+it in the keymap, @var{kmap}.
+
+@end deffn
+
@deffn Command redisplay
Redisplay the current window, just like @kbd{C-t l} would do.
@end deffn
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);