diff options
author | sabetts <sabetts> | 2001-08-31 18:12:30 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-08-31 18:12:30 +0000 |
commit | 5ba92aaaafc8a545f1faa5563c23abfbb9e8fa03 (patch) | |
tree | 89478b4e9c1035f9478b1face069336ea15a02b0 /src/split.c | |
parent | 82038e02ab782ce856d8f66cc0f20a6c8d8fec71 (diff) | |
download | ratpoison-5ba92aaaafc8a545f1faa5563c23abfbb9e8fa03.zip |
maximize bug fixed. frame indicator is less intrusive
Diffstat (limited to 'src/split.c')
-rw-r--r-- | src/split.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/split.c b/src/split.c index 28e4c5c..7820a36 100644 --- a/src/split.c +++ b/src/split.c @@ -524,8 +524,7 @@ set_active_frame (rp_window_frame *frame) give_window_focus (frame->win, rp_current_frame->win); rp_current_frame = frame; - if ((!frame->win || old != rp_current_frame) - && num_frames() > 1) + if (old != rp_current_frame && num_frames() > 1) { show_frame_indicator(); } @@ -544,24 +543,15 @@ blank_frame (rp_window_frame *frame) if (frame->win == NULL) return; hide_window (frame->win); - set_frames_window (frame, NULL); + hide_others (frame->win); - if (frame == rp_current_frame && num_frames() > 1) - { - show_frame_indicator(); - XSetInputFocus (dpy, current_screen()->frame_window, - RevertToPointerRoot, CurrentTime); - } + set_frames_window (frame, NULL); } void hide_frame_indicator () { - /* Only hide the frame indicator if a window occupies the frame */ - if (num_frames() <= 1 || rp_current_frame->win) - { - XUnmapWindow (dpy, current_screen()->frame_window); - } + XUnmapWindow (dpy, current_screen()->frame_window); } void |