wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

configurerequest.c (533B)


      1 /* Copyright ©2006-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "event.h"
      5 
      6 void
      7 event_configurerequest(XConfigureRequestEvent *ev) {
      8 	XWindowChanges wc;
      9 	Window *w;
     10 
     11 	if((w = findwin(ev->window)))
     12 		event_handle(w, configreq, ev);
     13 	else{
     14 		wc.x = ev->x;
     15 		wc.y = ev->y;
     16 		wc.width = ev->width;
     17 		wc.height = ev->height;
     18 		wc.border_width = ev->border_width;
     19 		wc.sibling = ev->above;
     20 		wc.stack_mode = ev->detail;
     21 		XConfigureWindow(display, ev->window, ev->value_mask, &wc);
     22 	}
     23 }
     24