changeset: 127:5294049329a0
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Wed Oct 28 21:37:15 2009 +0100
files: tabbed.c
description:
closing tab with middlemouse, circling tabs with mousewheel.
diff -r 0c241a3682d7 -r 5294049329a0 tabbed.c
--- a/tabbed.c Wed Oct 28 20:31:34 2009 +0100
+++ b/tabbed.c Wed Oct 28 21:37:15 2009 +0100
@@ -161,13 +161,27 @@
const XButtonPressedEvent *ev = &e->xbutton;
int i;
Client *c;
+ Arg arg;
c = getfirsttab();
if(c != clients && ev->x < TEXTW(before))
return;
for(i = 0; c; c = c->next, i++) {
if(c->tabx > ev->x) {
- focus(c);
+ switch(ev->button) {
+ case Button1:
+ focus(c);
+ break;
+ case Button2:
+ focus(c);
+ killclient(NULL);
+ break;
+ case Button4:
+ case Button5:
+ arg.i = ev->button == Button4 ? -1 : 1;
+ rotate(&arg);
+ break;
+ }
break;
}
}
Received on Wed Oct 28 2009 - 20:37:23 UTC
This archive was generated by hypermail 2.2.0 : Wed Oct 28 2009 - 20:48:05 UTC