comparison event.c @ 487:be4f90c03582

applied Jukkas patch
author arg@mmvi
date Mon, 25 Sep 2006 08:21:51 +0200
parents acb1fc729a8c
children 0d2559f46b9e
comparison
equal deleted inserted replaced
486:8d564b9e3cd4 487:be4f90c03582
168 else if((c = getclient(ev->window))) { 168 else if((c = getclient(ev->window))) {
169 focus(c); 169 focus(c);
170 if(CLEANMASK(ev->state) != MODKEY) 170 if(CLEANMASK(ev->state) != MODKEY)
171 return; 171 return;
172 if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) { 172 if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) {
173 restack(c); 173 restack();
174 movemouse(c); 174 movemouse(c);
175 } 175 }
176 else if(ev->button == Button2) 176 else if(ev->button == Button2)
177 zoom(NULL); 177 zoom(NULL);
178 else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) { 178 else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) {
179 restack(c); 179 restack();
180 resizemouse(c); 180 resizemouse(c);
181 } 181 }
182 } 182 }
183 } 183 }
184 184
386 [PropertyNotify] = propertynotify, 386 [PropertyNotify] = propertynotify,
387 [UnmapNotify] = unmapnotify 387 [UnmapNotify] = unmapnotify
388 }; 388 };
389 389
390 void 390 void
391 grabkeys() { 391 grabkeys(void) {
392 static unsigned int len = sizeof(key) / sizeof(key[0]); 392 static unsigned int len = sizeof(key) / sizeof(key[0]);
393 unsigned int i; 393 unsigned int i;
394 KeyCode code; 394 KeyCode code;
395 395
396 XUngrabKey(dpy, AnyKey, AnyModifier, root); 396 XUngrabKey(dpy, AnyKey, AnyModifier, root);
406 GrabModeAsync, GrabModeAsync); 406 GrabModeAsync, GrabModeAsync);
407 } 407 }
408 } 408 }
409 409
410 void 410 void
411 procevent() { 411 procevent(void) {
412 XEvent ev; 412 XEvent ev;
413 413
414 while(XPending(dpy)) { 414 while(XPending(dpy)) {
415 XNextEvent(dpy, &ev); 415 XNextEvent(dpy, &ev);
416 if(handler[ev.type]) 416 if(handler[ev.type])