URI: 
       Applying the client sel handling of quinq. - tabbed - tab interface for application supporting Xembed
  HTML git clone git://git.suckless.org/tabbed
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 4b2dfb110f4c2698ab27ea6ad2f6f2e914631b9f
   DIR parent 0120447e0417e9f52b5c2ae081f07f922a2ea9c2
  HTML Author: Christoph Lohmann <20h@r-36.net>
       Date:   Sun, 26 Jan 2014 18:48:52 +0100
       
       Applying the client sel handling of quinq.
       
       When after unmanaging the the last selected client was unmanaged, select the
       last client.
       
       Diffstat:
         M tabbed.c                            |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/tabbed.c b/tabbed.c
       @@ -1089,8 +1089,8 @@ unmanage(int c) {
                                spawn(NULL);
                        }
                } else {
       -                if(c == lastsel) {
       -                        lastsel = -1;
       +                if(c && lastsel >= nclients) {
       +                        lastsel = nclients - 1;
                        } else if(lastsel > c) {
                                lastsel--;
                        }