diff options
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/xutil.c b/xutil.c index c57bea7..7f788a2 100644 --- a/xutil.c +++ b/xutil.c @@ -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; |