diff options
author | sabetts <sabetts> | 2001-04-15 21:33:41 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-04-15 21:33:41 +0000 |
commit | 2ad236ca615e15f2fb00c0c37a6436c84caab091 (patch) | |
tree | ee197c1a9f23682c815ac5a9792ee9c9de1cdfcb /src/split.c | |
parent | b87be52b56c7f62294c49c40a49c766b958d0809 (diff) | |
download | ratpoison-2ad236ca615e15f2fb00c0c37a6436c84caab091.zip |
(show_frame_indicator): contents of
update_frame_indicator merged into here.
(update_frame_indicator): remove function
Diffstat (limited to 'src/split.c')
-rw-r--r-- | src/split.c | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/src/split.c b/src/split.c index f8150f0..eafef7a 100644 --- a/src/split.c +++ b/src/split.c @@ -500,8 +500,18 @@ blank_frame (rp_window_frame *frame) } } -static void -update_frame_indicator () +void +hide_frame_indicator () +{ + /* Only hide the frame indicator if a window occupies the frame */ + if (rp_current_frame->win) + { + XUnmapWindow (dpy, current_screen()->frame_window); + } +} + +void +show_frame_indicator () { screen_info *s = current_screen (); int width, height; @@ -514,28 +524,13 @@ update_frame_indicator () rp_current_frame->y + rp_current_frame->height / 2 - height / 2, width, height); + XMapRaised (dpy, current_screen()->frame_window); + XClearWindow (dpy, s->frame_window); XDrawString (dpy, s->frame_window, s->normal_gc, BAR_X_PADDING, BAR_Y_PADDING + s->font->max_bounds.ascent, FRAME_STRING, strlen (FRAME_STRING)); -} - -void -hide_frame_indicator () -{ - /* Only hide the frame indicator if a window occupies the frame */ - if (rp_current_frame->win) - { - XUnmapWindow (dpy, current_screen()->frame_window); - } -} - -void -show_frame_indicator () -{ - XMapRaised (dpy, current_screen()->frame_window); - update_frame_indicator(); alarm (FRAME_INDICATOR_TIMEOUT); } |