Add default mousebind for client (scroll to focus next/prev tab) and minor fix

This commit is contained in:
Martin Duquesnoy 2012-01-22 01:49:25 +01:00
parent ebc83c904b
commit 97fd008856
2 changed files with 7 additions and 5 deletions

View File

@ -407,7 +407,7 @@ client_frame_update(struct client *c, struct colpair *cp)
barwin_resize(c->titlebar, f, c->tbarw); barwin_resize(c->titlebar, f, c->tbarw);
barwin_refresh_color(c->titlebar); barwin_refresh_color(c->titlebar);
draw_rect(cc->titlebar->dr, g, c->scol.bg); draw_rect(c->titlebar->dr, g, c->scol.bg);
draw_text(c->titlebar->dr, c->theme, xt, y, cp->fg, c->title); draw_text(c->titlebar->dr, c->theme, xt, y, cp->fg, c->title);
barwin_refresh(c->titlebar); barwin_refresh(c->titlebar);

2
wmfsrc
View File

@ -98,6 +98,8 @@
[mouse] button = "1" func = "mouse_swap" [/mouse] [mouse] button = "1" func = "mouse_swap" [/mouse]
[mouse] button = "2" func = "mouse_tab" [/mouse] [mouse] button = "2" func = "mouse_tab" [/mouse]
[mouse] button = "3" func = "mouse_resize" [/mouse] [mouse] button = "3" func = "mouse_resize" [/mouse]
[mouse] button = "4" func = "client_focus_next_tab" [/mouse]
[mouse] button = "5" func = "client_focus_prev_tab" [/mouse]
[/client] [/client]