On May 18 2013, David Dufberg Tøttrup wrote:

tabbed recieves buttonpress events on the border, with a negative x value. The consequence is that tabbed interprets this as a press on the leftmost item in the tab bar. Patch attached.

Sincerely,
David


Of course I forgot to attach the patch...
diff --git a/tabbed.c b/tabbed.c
index d071b2c..3d85f03 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -172,7 +172,7 @@ buttonpress(const XEvent *e) {
 	int i;
 	Arg arg;
 
-	if(getfirsttab() != 0 && ev->x < TEXTW(before))
+	if((getfirsttab() != 0 && ev->x < TEXTW(before)) || ev->x < 0)
 		return;
 
 	for(i = 0; i < nclients; i++) {

Reply via email to