diff options
author | sabetts <sabetts> | 2003-05-09 23:04:10 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2003-05-09 23:04:10 +0000 |
commit | 24d5148b3ece4ff8d8c9ac1ec4be34fdd0b237bb (patch) | |
tree | c4bb301ed9d7413ccea733d6fff29aa742aadc51 /src/split.c | |
parent | 41016f3a7577fbf35db849b9937ee22ee02e5760 (diff) | |
download | ratpoison-24d5148b3ece4ff8d8c9ac1ec4be34fdd0b237bb.zip |
* src/split.c (split_frame): call update_bar() instead of
update_window_names().
(set_active_frame): likewise
(blank_frame): likewise
* src/bar.h (update_bar): new prototype.
* src/bar.c (BAR_IS_HIDDEN): new define.
(update_bar): new function.
* src/actions.c (cmd_frestore): call update_bar() instead of
update_window_names().
* src/split.c (set_active_frame): update the window list after
switching frames.
(blank_frame): update the window list after blanking the screen.
* src/actions.c (cmd_frestore): update the window list after
restoring the frames.
* src/split.c (split_frame): update the window list after the
split.
Diffstat (limited to 'src/split.c')
-rw-r--r-- | src/split.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/split.c b/src/split.c index 17391b5..def1349 100644 --- a/src/split.c +++ b/src/split.c @@ -350,7 +350,7 @@ split_frame (rp_window_frame *frame, int way, int pixels) XRaiseWindow (dpy, find_window_number (frame->win_number)->w); } - update_window_names (s); + update_bar (s); show_frame_indicator(); } @@ -839,11 +839,12 @@ set_active_frame (rp_window_frame *frame) /* If frame->win == NULL, then rp_current_screen is not updated. */ rp_current_screen = s->screen_num; + update_bar (s); + /* Possibly show the frame indicator. */ if ((old != s->current_frame && num_frames(s) > 1) || s != old_s) { - update_window_names (s); show_frame_indicator(); } @@ -859,16 +860,21 @@ set_active_frame (rp_window_frame *frame) void blank_frame (rp_window_frame *frame) { + screen_info *s; rp_window *win; if (frame->win_number == EMPTY) return; + s = frames_screen (frame); + win = find_window_number (frame->win_number); hide_window (win); hide_others (win); set_frames_window (frame, NULL); + update_bar (s); + /* Give the key window focus. */ XSetInputFocus (dpy, current_screen()->key_window, RevertToPointerRoot, CurrentTime); |