aewl

diff client.c @ 491:12395ef46d97

added configure(), but this doesn't really fix those frking broken SDL apps
author arg@mmvi
date Tue, 26 Sep 2006 07:40:19 +0200
parents de69a7b0c8fa
children d5ad819f2a66
line diff
     1.1 --- a/client.c	Mon Sep 25 21:28:00 2006 +0200
     1.2 +++ b/client.c	Tue Sep 26 07:40:19 2006 +0200
     1.3 @@ -81,6 +81,23 @@
     1.4  }
     1.5  
     1.6  void
     1.7 +configure(Client *c) {
     1.8 +	XEvent synev;
     1.9 +
    1.10 +	synev.type = ConfigureNotify;
    1.11 +	synev.xconfigure.display = dpy;
    1.12 +	synev.xconfigure.event = c->win;
    1.13 +	synev.xconfigure.window = c->win;
    1.14 +	synev.xconfigure.x = c->x;
    1.15 +	synev.xconfigure.y = c->y;
    1.16 +	synev.xconfigure.width = c->w;
    1.17 +	synev.xconfigure.height = c->h;
    1.18 +	synev.xconfigure.border_width = c->border;
    1.19 +	synev.xconfigure.above = None;
    1.20 +	XSendEvent(dpy, c->win, True, NoEventMask, &synev);
    1.21 +}
    1.22 +
    1.23 +void
    1.24  focus(Client *c) {
    1.25  	Client *old;
    1.26  
    1.27 @@ -299,6 +316,7 @@
    1.28  	else
    1.29  		wc.border_width = 1;
    1.30  	XConfigureWindow(dpy, c->win, CWX | CWY | CWWidth | CWHeight | CWBorderWidth, &wc);
    1.31 +	configure(c);
    1.32  	XSync(dpy, False);
    1.33  }
    1.34