t* dwm + patches
       
   URI git clone git://git.codevoid.de/dwm-sdk
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 825b7c3eb17fd0a79005110bf28e92c4ed2f1a90
   DIR parent ba96131af0e3a46b8dfbe7c938954f833339e77a
   URI Author: Anselm R. Garbe <arg@suckless.org>
       Date:   Thu, 22 Feb 2007 12:00:02 +0100
       
       fixed some issues due to the Arg->const char * transition
       Diffstat:
         M event.c                             |      18 +++++++++---------
         M layout.c                            |       1 +
       
       2 files changed, 10 insertions(+), 9 deletions(-)
       ---
   DIR diff --git a/event.c b/event.c
       t@@ -113,29 +113,29 @@ resizemouse(Client *c) {
        
        static void
        buttonpress(XEvent *e) {
       -        static char arg[8];
       -        int i, x;
       +        static char buf[32];
       +        unsigned int i, x;
                Client *c;
                XButtonPressedEvent *ev = &e->xbutton;
        
       -        arg[0] = 0;
       +        buf[0] = 0;
                if(barwin == ev->window) {
                        x = 0;
                        for(i = 0; i < ntags; i++) {
                                x += textw(tags[i]);
                                if(ev->x < x) {
       -                                snprintf(arg, sizeof arg, "%d", i);
       +                                snprintf(buf, sizeof buf, "%d", i);
                                        if(ev->button == Button1) {
                                                if(ev->state & MODKEY)
       -                                                tag(arg);
       +                                                tag(buf);
                                                else
       -                                                view(arg);
       +                                                view(buf);
                                        }
                                        else if(ev->button == Button3) {
                                                if(ev->state & MODKEY)
       -                                                toggletag(arg);
       +                                                toggletag(buf);
                                                else
       -                                                toggleview(arg);
       +                                                toggleview(buf);
                                        }
                                        return;
                                }
       t@@ -143,7 +143,7 @@ buttonpress(XEvent *e) {
                        if(ev->x < x + blw)
                                switch(ev->button) {
                                case Button1:
       -                                setlayout("-1");
       +                                setlayout(NULL);
                                        break;
                                }
                }
   DIR diff --git a/layout.c b/layout.c
       t@@ -2,6 +2,7 @@
         * See LICENSE file for license details.
         */
        #include "dwm.h"
       +#include <stdlib.h>
        
        unsigned int blw = 0;
        Layout *lt = NULL;