From 97fd00885662eb59d3847fe6fef77aa2459c11b5 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Sun, 22 Jan 2012 01:49:25 +0100 Subject: [PATCH] Add default mousebind for client (scroll to focus next/prev tab) and minor fix --- src/client.c | 2 +- wmfsrc | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/client.c b/src/client.c index 1e77ebb..968a850 100644 --- a/src/client.c +++ b/src/client.c @@ -407,7 +407,7 @@ client_frame_update(struct client *c, struct colpair *cp) barwin_resize(c->titlebar, f, c->tbarw); 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); barwin_refresh(c->titlebar); diff --git a/wmfsrc b/wmfsrc index 4dc3618..663fa52 100644 --- a/wmfsrc +++ b/wmfsrc @@ -94,10 +94,12 @@ [client] - [mouse] button = "1" func = "client_focus_click" [/mouse] - [mouse] button = "1" func = "mouse_swap" [/mouse] - [mouse] button = "2" func = "mouse_tab" [/mouse] - [mouse] button = "3" func = "mouse_resize" [/mouse] + [mouse] button = "1" func = "client_focus_click" [/mouse] + [mouse] button = "1" func = "mouse_swap" [/mouse] + [mouse] button = "2" func = "mouse_tab" [/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]