Mercurial > dwm-meillo
comparison client.c @ 16:359b6e563b95
several changes, new stuff
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Tue, 11 Jul 2006 18:53:41 +0200 |
parents | 5c078b66347b |
children | 1efa34c6e1b6 |
comparison
equal
deleted
inserted
replaced
15:00d4d52b231f | 16:359b6e563b95 |
---|---|
33 strncpy(c->name, *list, sizeof(c->name)); | 33 strncpy(c->name, *list, sizeof(c->name)); |
34 XFreeStringList(list); | 34 XFreeStringList(list); |
35 } | 35 } |
36 } | 36 } |
37 XFree(name.value); | 37 XFree(name.value); |
38 if(c == stack) | |
39 draw_bar(); | |
40 else | |
41 draw_client(c); | |
38 } | 42 } |
39 | 43 |
40 void | 44 void |
41 focus(Client *c) | 45 focus(Client *c) |
42 { | 46 { |
64 c->r[RFloat].y = wa->y; | 68 c->r[RFloat].y = wa->y; |
65 c->r[RFloat].width = wa->width; | 69 c->r[RFloat].width = wa->width; |
66 c->r[RFloat].height = wa->height; | 70 c->r[RFloat].height = wa->height; |
67 c->border = wa->border_width; | 71 c->border = wa->border_width; |
68 XSetWindowBorderWidth(dpy, c->win, 0); | 72 XSetWindowBorderWidth(dpy, c->win, 0); |
73 XSelectInput(dpy, c->win, StructureNotifyMask | PropertyChangeMask | EnterWindowMask); | |
69 XGetTransientForHint(dpy, c->win, &c->trans); | 74 XGetTransientForHint(dpy, c->win, &c->trans); |
70 if(!XGetWMNormalHints(dpy, c->win, &c->size, &msize) || !c->size.flags) | 75 if(!XGetWMNormalHints(dpy, c->win, &c->size, &msize) || !c->size.flags) |
71 c->size.flags = PSize; | 76 c->size.flags = PSize; |
72 c->fixedsize = | 77 c->fixedsize = |
73 (c->size.flags & PMinSize && c->size.flags & PMaxSize | 78 (c->size.flags & PMinSize && c->size.flags & PMaxSize |