dwm-meillo
diff client.c @ 80:8125f908c80c
several additions in mouse handling ;)
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Sun, 16 Jul 2006 00:47:40 +0200 |
parents | aabebd6e61f3 |
children | 92f0d50475be |
line diff
1.1 --- a/client.c Sat Jul 15 18:51:44 2006 +0200 1.2 +++ b/client.c Sun Jul 16 00:47:40 2006 +0200 1.3 @@ -192,7 +192,7 @@ 1.4 void 1.5 manage(Window w, XWindowAttributes *wa) 1.6 { 1.7 - Client *c, **l; 1.8 + Client *c; 1.9 XSetWindowAttributes twa; 1.10 Window trans; 1.11 1.12 @@ -223,10 +223,11 @@ 1.13 settitle(c); 1.14 settags(c); 1.15 1.16 - for(l = &clients; *l; l = &(*l)->next); 1.17 - c->next = *l; /* *l == nil */ 1.18 - *l = c; 1.19 + c->next = clients; 1.20 + clients = c; 1.21 1.22 + XGrabButton(dpy, Button1, ControlMask, c->win, False, ButtonPressMask, 1.23 + GrabModeAsync, GrabModeSync, None, None); 1.24 XGrabButton(dpy, Button1, Mod1Mask, c->win, False, ButtonPressMask, 1.25 GrabModeAsync, GrabModeSync, None, None); 1.26 XGrabButton(dpy, Button2, Mod1Mask, c->win, False, ButtonPressMask, 1.27 @@ -234,8 +235,8 @@ 1.28 XGrabButton(dpy, Button3, Mod1Mask, c->win, False, ButtonPressMask, 1.29 GrabModeAsync, GrabModeSync, None, None); 1.30 1.31 - if(!c->dofloat) 1.32 - c->dofloat = trans 1.33 + if(!c->isfloat) 1.34 + c->isfloat = trans 1.35 || ((c->maxw == c->minw) && (c->maxh == c->minh)); 1.36 1.37 arrange(NULL);