Added it_toggle_bar command; default mapping: XK_b

This commit is contained in:
Bert Münnich
2012-02-15 22:33:39 +01:00
parent 011dac90c8
commit c666d30eea
7 changed files with 30 additions and 0 deletions

View File

@ -306,6 +306,19 @@ void win_toggle_fullscreen(win_t *win) {
SubstructureNotifyMask | SubstructureRedirectMask, &ev);
}
void win_toggle_bar(win_t *win) {
if (win == NULL || win->xwin == None)
return;
if (win->barh != 0) {
win->h += win->barh;
win->barh = 0;
} else {
win->barh = font.ascent + font.descent + 2 * V_TEXT_PAD;
win->h -= win->barh;
}
}
void win_clear(win_t *win) {
win_env_t *e;