浏览代码

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

Martin Duquesnoy 12 年之前
父节点
当前提交
97fd008856
共有 2 个文件被更改,包括 7 次插入5 次删除
  1. 1 1
      src/client.c
  2. 6 4
      wmfsrc

+ 1 - 1
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);
 

+ 6 - 4
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]