summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnno Boland (tox) <tox@s01.de>2009-09-08 13:06:13 +0200
committerEnno Boland (tox) <tox@s01.de>2009-09-08 13:06:13 +0200
commitd16553bcbcca9bb05c93276df7fbd3c1f1bfb45d (patch)
tree25e761552a230694c829e0a3c9614947638e4e40
parent2be5c5a7c472ecfd0378aa3c3522ccdb9576a81c (diff)
adding classhints.
-rw-r--r--tabbed.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tabbed.c b/tabbed.c
index f4b3ed1..89388c8 100644
--- 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();
}