diff options
author | Enno Boland (tox) <tox@s01.de> | 2009-09-08 13:06:13 +0200 |
---|---|---|
committer | Enno Boland (tox) <tox@s01.de> | 2009-09-08 13:06:13 +0200 |
commit | d16553bcbcca9bb05c93276df7fbd3c1f1bfb45d (patch) | |
tree | 25e761552a230694c829e0a3c9614947638e4e40 | |
parent | 2be5c5a7c472ecfd0378aa3c3522ccdb9576a81c (diff) |
adding classhints.
-rw-r--r-- | tabbed.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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(); } |