/* extern */
+void
+ban(Client *c) {
+ if(!c || c->isbanned)
+ return;
+ c->isbanned = True;
+ XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
+}
+
void
configure(Client *c) {
XConfigureEvent ce;
c->next = clients;
c->snext = stack;
stack = clients = c;
- XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
+ ban(c);
XMapWindow(dpy, c->win);
setclientstate(c, NormalState);
if(isvisible(c))
}
else
c->minax = c->minay = c->maxax = c->maxay = 0;
- c->isfixed = (c->maxw && c->minw && c->maxh && c->minh &&
- c->maxw == c->minw && c->maxh == c->minh);
+ c->isfixed = (c->maxw && c->minw && c->maxh && c->minh
+ && c->maxw == c->minw && c->maxh == c->minh);
}
void
strncpy(c->name, (char *)name.value, sizeof c->name);
else {
if(XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success
- && n > 0 && *list)
+ && n > 0 && *list)
{
strncpy(c->name, *list, sizeof c->name);
XFreeStringList(list);