From d51ea7ebc8ffcefc1926165b482b087e06f7a36e Mon Sep 17 00:00:00 2001 From: sabetts Date: Sun, 21 Sep 2003 21:30:52 +0000 Subject: (prepare_bar): move and resize the window before mapping it. --- ChangeLog | 4 ++++ doc/ratpoison.texi | 16 ++++++++++++++++ src/bar.c | 8 ++++---- 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 + + * src/bar.c (prepare_bar): move and resize the window before mapping it. + 2003-09-04 Shawn Betts * 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); -- cgit v1.2.3