diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2011-03-22 10:49:47 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2011-03-22 10:49:47 +0000 |
commit | 8a2cf63fb53939d371f94f692d9d352b1005dee3 (patch) | |
tree | 6c395731802a8fe7dfe9b2a314db89a99493e0ec /app/cwm/xutil.c | |
parent | f543130c493810295da0f0d472d148fa302471e8 (diff) |
remove XXX and move a configure event out of the event handler functions.
reminded by a similiar diff from Thomas Pfaff.
ok oga@
Diffstat (limited to 'app/cwm/xutil.c')
-rw-r--r-- | app/cwm/xutil.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/app/cwm/xutil.c b/app/cwm/xutil.c index 2473ecc41..b50242adb 100644 --- a/app/cwm/xutil.c +++ b/app/cwm/xutil.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: xutil.c,v 1.32 2010/05/22 22:32:08 okan Exp $ + * $Id: xutil.c,v 1.33 2011/03/22 10:49:46 okan Exp $ */ #include <sys/param.h> @@ -119,6 +119,25 @@ xu_key_ungrab(Window win, int mask, int keysym) } void +xu_configure(struct client_ctx *cc) +{ + XConfigureEvent ce; + + ce.type = ConfigureNotify; + ce.event = cc->win; + ce.window = cc->win; + ce.x = cc->geom.x; + ce.y = cc->geom.y; + ce.width = cc->geom.width; + ce.height = cc->geom.height; + ce.border_width = cc->bwidth; + ce.above = None; + ce.override_redirect = 0; + + XSendEvent(X_Dpy, cc->win, False, StructureNotifyMask, (XEvent *)&ce); +} + +void xu_sendmsg(Window win, Atom atm, long val) { XEvent e; |