storing windowId in char[] variable.
This commit is contained in:
parent
44d0720f9c
commit
204af1549b
@ -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 } },
|
||||
|
2
tabbed.c
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user