[hackers] [tabbed] Fix issue with clicks on the tabbed border. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Mon, 20 May 2013 18:17:44 +0200

commit 7cb38e81b5256496acf4dcd97fc01081efc8fc1f
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Mon May 20 18:14:27 2013 +0200

    Fix issue with clicks on the tabbed border.
    
    Thanks David Dufberg Tøttrup <david_AT_dufberg.se>!

diff --git a/tabbed.c b/tabbed.c
index d071b2c..3d85f03 100644
--- a/tabbed.c
+++ b/tabbed.c
_AT_@ -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++) {
Received on Mon May 20 2013 - 18:17:44 CEST

This archive was generated by hypermail 2.3.0 : Mon May 20 2013 - 18:24:15 CEST