removing autostart. using stdin instead. - ttabbed - Simple tabbing application for X11.
       
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit ad9b0d6ea6264a861e6bde6bab58520cf28c13b8
 (DIR) parent 9ed035a5c117b501d5f708a9fd677a6b85543475
 (HTM) Author: Enno Boland (tox) <tox@s01.de>
       Date:   Tue,  8 Sep 2009 16:24:13 +0200
       
       removing autostart. using stdin instead.
       Diffstat:
         config.def.h                        |       5 -----
         tabbed.c                            |      17 ++---------------
       
       2 files changed, 2 insertions(+), 20 deletions(-)
       ---
 (DIR) diff --git a/config.def.h b/config.def.h
       @@ -27,8 +27,3 @@ Key keys[] = { \
                { MODKEY,                       XK_0,      move,           { .i = 10 } },
                { MODKEY,                       XK_q,      killclient,     { 0 } },
        };
       -
       -Autostart autostarts[] = { \
       -        /* function         argument */
       -        { spawntab,       { .v = (char*[]){ EXEC, NULL} } },
       -};
 (DIR) diff --git a/tabbed.c b/tabbed.c
       @@ -46,11 +46,6 @@ typedef struct {
        } Key;
        
        ttypedef struct {
       -        void (*func)(const Arg *);
       -        const Arg arg;
       -} Autostart;
       -
       -ttypedef struct {
                int x, y, w, h;
                unsigned long norm[ColLast];
                unsigned long sel[ColLast];
       @@ -78,7 +73,6 @@ typedef struct Listener {
        } Listener;
        
        /* function declarations */
       -static void autostart(void);
        static void buttonpress(XEvent *e);
        static void cleanup(void);
        static void configurenotify(XEvent *e);
       @@ -136,14 +130,6 @@ static Bool badwindow = False;
        #include "config.h"
        
        void
       -autostart() {
       -        int i;
       -
       -        for(i = 0; i < LENGTH(autostarts); i++)
       -                autostarts[i].func(&(autostarts[i].arg));
       -}
       -
       -void
        buttonpress(XEvent *e) {
                int i;
                Client *c;
       @@ -685,6 +671,8 @@ setup(void) {
                class_hint.res_name = "tabbed";
                class_hint.res_class = "Tabbed";
                XSetClassHint(dpy, win, &class_hint);
       +        listeners = emallocz(sizeof(Listener));
       +        listeners->fd = STDIN_FILENO;
        }
        
        int
       @@ -772,7 +760,6 @@ main(int argc, char *argv[]) {
                if(!(dpy = XOpenDisplay(0)))
                        die("tabbed: cannot open display\n");
                setup();
       -        autostart();
                run();
                /*dummys*/
                cleanup();