diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2008-05-15 21:56:22 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2008-05-15 21:56:22 +0000 |
commit | 8922e68dbc998b43da1c7c904799e15902248495 (patch) | |
tree | 824aa6e0e4cb00d8c70f6c2d646eb6cc9897545c /app | |
parent | 9f980cac947f3d9cef8a0c193747d7e42d50bc1b (diff) |
tiny bit of knf
ok oga@
Diffstat (limited to 'app')
-rw-r--r-- | app/cwm/client.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c index f27e8d8f2..f4efb74c1 100644 --- a/app/cwm/client.c +++ b/app/cwm/client.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: client.c,v 1.19 2008/05/01 18:01:13 oga Exp $ + * $Id: client.c,v 1.20 2008/05/15 21:56:21 okan Exp $ */ #include "headers.h" @@ -115,8 +115,8 @@ client_new(Window win, struct screen_ctx *sc, int mapped) if (xu_getstate(cc, &state) < 0) state = NormalState; - XSelectInput(X_Dpy, cc->win, - ColormapChangeMask|EnterWindowMask|PropertyChangeMask|KeyReleaseMask); + XSelectInput(X_Dpy, cc->win, ColormapChangeMask | EnterWindowMask | + PropertyChangeMask | KeyReleaseMask); x = cc->geom.x - cc->bwidth; y = cc->geom.y - cc->bwidth; @@ -130,15 +130,8 @@ client_new(Window win, struct screen_ctx *sc, int mapped) pxattr.override_redirect = True; pxattr.background_pixel = sc->bgcolor.pixel; - pxattr.event_mask = - ChildMask|ButtonPressMask|ButtonReleaseMask| - ExposureMask|EnterWindowMask; -/* pxattr.border_pixel = sc->blackpix; */ -/* pxattr.background_pixel = sc->whitepix; */ - - -/* cc->pwin = XCreateSimpleWindow(X_Dpy, sc->rootwin, */ -/* x, y, width, height, 1, sc->blackpix, sc->whitepix); */ + pxattr.event_mask = ChildMask | ButtonPressMask | ButtonReleaseMask | + ExposureMask | EnterWindowMask; cc->pwin = XCreateWindow(X_Dpy, sc->rootwin, x, y, width, height, 0, /* XXX */ @@ -189,9 +182,8 @@ client_new(Window win, struct screen_ctx *sc, int mapped) client_gethints(cc); client_update(cc); - if (mapped) { + if (mapped) group_autogroup(cc); - } return (cc); } |