summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEnno Boland (tox) <tox@s01.de>2009-09-23 11:24:11 +0200
committerEnno Boland (tox) <tox@s01.de>2009-09-23 11:24:11 +0200
commit204af1549bb5f1e8e848579ff41ee52d58dd593f (patch)
tree33db627069402d49f76738ef6cc0a31615e2d2a0
parent44d0720f9c352017b9c49a8dae6f9fbeb2f54163 (diff)
downloadtabbed-204af1549bb5f1e8e848579ff41ee52d58dd593f.tar.gz
storing windowId in char[] variable.
-rw-r--r--config.def.h8
-rw-r--r--tabbed.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h
index a11285c..840254a 100644
--- a/config.def.h
+++ b/config.def.h
@@ -7,12 +7,12 @@ static const int tabwidth = 200;
static const char before[] = "<";
static const char after[] = ">";
-#define EXEC "surf", "-x"
+#define EXEC "surf", "-e", winid
#define MODKEY ControlMask
-Key keys[] = { \
+static Key keys[] = { \
/* modifier key function argument */
- { MODKEY|ShiftMask, XK_Return, spawn, { .v = (char*[]){ EXEC, NULL} } },
- { MODKEY|ShiftMask, XK_t, spawn, { .v = (char*[]){ EXEC, NULL} } },
+ { MODKEY|ShiftMask, XK_Return, spawn, { .v = (char*[]){ EXEC, NULL} } },
+ { MODKEY|ShiftMask, XK_t, spawn, { .v = (char*[]){ EXEC, NULL} } },
{ MODKEY|ShiftMask, XK_l, rotate, { .i = +1 } },
{ MODKEY|ShiftMask, XK_h, rotate, { .i = -1 } },
{ MODKEY, XK_1, move, { .i = 1 } },
diff --git a/tabbed.c b/tabbed.c
index ff5febf..864f324 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -152,6 +152,7 @@ static Atom wmatom[WMLast], netatom[NetLast], xembedatom;
static Window root, win;
static Client *clients = NULL, *sel = NULL;
static int (*xerrorxlib)(Display *, XErrorEvent *);
+static char winid[128];
/* configuration, allows nested code to access above variables */
#include "config.h"
@@ -686,6 +687,7 @@ setup(void) {
class_hint.res_name = "tabbed";
class_hint.res_class = "Tabbed";
XSetClassHint(dpy, win, &class_hint);
+ snprintf(winid, LENGTH(winid), "%u", (int)win);
}
void