tabbed

Simple tabbing application for X11.
git clone git://r-36.net/tabbed
Log | Files | Refs | README | LICENSE

commit d16553bcbcca9bb05c93276df7fbd3c1f1bfb45d
parent 2be5c5a7c472ecfd0378aa3c3522ccdb9576a81c
Author: Enno Boland (tox) <tox@s01.de>
Date:   Tue,  8 Sep 2009 13:06:13 +0200

adding classhints.
Diffstat:
tabbed.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/tabbed.c b/tabbed.c @@ -296,6 +296,7 @@ focus(Client *c) { XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); XSelectInput(dpy, c->win, PropertyChangeMask|StructureNotifyMask); sel = c; + XStoreName(dpy, win, sel->name); drawbar(); } @@ -671,6 +672,11 @@ setup(void) { LeaveWindowMask); XMapRaised(dpy, win); XSetErrorHandler(xerror); + XClassHint class_hint; + XStoreName(dpy, win, "Tabbed"); + class_hint.res_name = "Tabbed"; + class_hint.res_class = "tabbed"; + XSetClassHint(dpy, win, &class_hint); } int @@ -727,6 +733,8 @@ updatenumlockmask(void) { void updatetitle(Client *c) { gettextprop(c->win, XA_WM_NAME, c->name, sizeof c->name); + if(sel == c) + XStoreName(dpy, win, c->name); drawbar(); }