From 204af1549bb5f1e8e848579ff41ee52d58dd593f Mon Sep 17 00:00:00 2001 From: "Enno Boland (tox)" Date: Wed, 23 Sep 2009 11:24:11 +0200 Subject: storing windowId in char[] variable. --- tabbed.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tabbed.c') 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 -- cgit v1.2.3