comparison client.c @ 55:fcbf7213d96f

continued with man page
author Anselm R. Garbe <garbeam@wmii.de>
date Fri, 14 Jul 2006 08:34:38 +0200
parents a64602deac83
children f005d46462e8
comparison
equal deleted inserted replaced
54:a64602deac83 55:fcbf7213d96f
396 396
397 for(l = &clients; *l; l = &(*l)->next); 397 for(l = &clients; *l; l = &(*l)->next);
398 c->next = *l; /* *l == nil */ 398 c->next = *l; /* *l == nil */
399 *l = c; 399 *l = c;
400 400
401 XSetWindowBorderWidth(dpy, c->win, 1);
402 XMapRaised(dpy, c->win); 401 XMapRaised(dpy, c->win);
403 XMapRaised(dpy, c->title); 402 XMapRaised(dpy, c->title);
404 XGrabButton(dpy, Button1, Mod1Mask, c->win, False, ButtonPressMask, 403 XGrabButton(dpy, Button1, Mod1Mask, c->win, False, ButtonPressMask,
405 GrabModeAsync, GrabModeSync, None, None); 404 GrabModeAsync, GrabModeSync, None, None);
406 XGrabButton(dpy, Button2, Mod1Mask, c->win, False, ButtonPressMask, 405 XGrabButton(dpy, Button2, Mod1Mask, c->win, False, ButtonPressMask,
493 if(c->maxw && c->w > c->maxw) 492 if(c->maxw && c->w > c->maxw)
494 c->w = c->maxw; 493 c->w = c->maxw;
495 if(c->maxh && c->h > c->maxh) 494 if(c->maxh && c->h > c->maxh)
496 c->h = c->maxh; 495 c->h = c->maxh;
497 resize_title(c); 496 resize_title(c);
497 XSetWindowBorderWidth(dpy, c->win, 1);
498 XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); 498 XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
499 e.type = ConfigureNotify; 499 e.type = ConfigureNotify;
500 e.event = c->win; 500 e.event = c->win;
501 e.window = c->win; 501 e.window = c->win;
502 e.x = c->x; 502 e.x = c->x;