mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
tiny bit of knf
ok oga@
This commit is contained in:
parent
458f96936d
commit
ec77265b87
18
client.c
18
client.c
@ -115,8 +115,8 @@ client_new(Window win, struct screen_ctx *sc, int mapped)
|
|||||||
if (xu_getstate(cc, &state) < 0)
|
if (xu_getstate(cc, &state) < 0)
|
||||||
state = NormalState;
|
state = NormalState;
|
||||||
|
|
||||||
XSelectInput(X_Dpy, cc->win,
|
XSelectInput(X_Dpy, cc->win, ColormapChangeMask | EnterWindowMask |
|
||||||
ColormapChangeMask|EnterWindowMask|PropertyChangeMask|KeyReleaseMask);
|
PropertyChangeMask | KeyReleaseMask);
|
||||||
|
|
||||||
x = cc->geom.x - cc->bwidth;
|
x = cc->geom.x - cc->bwidth;
|
||||||
y = cc->geom.y - 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.override_redirect = True;
|
||||||
pxattr.background_pixel = sc->bgcolor.pixel;
|
pxattr.background_pixel = sc->bgcolor.pixel;
|
||||||
pxattr.event_mask =
|
pxattr.event_mask = ChildMask | ButtonPressMask | ButtonReleaseMask |
|
||||||
ChildMask|ButtonPressMask|ButtonReleaseMask|
|
ExposureMask | EnterWindowMask;
|
||||||
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); */
|
|
||||||
|
|
||||||
cc->pwin = XCreateWindow(X_Dpy, sc->rootwin, x, y,
|
cc->pwin = XCreateWindow(X_Dpy, sc->rootwin, x, y,
|
||||||
width, height, 0, /* XXX */
|
width, height, 0, /* XXX */
|
||||||
@ -189,9 +182,8 @@ client_new(Window win, struct screen_ctx *sc, int mapped)
|
|||||||
client_gethints(cc);
|
client_gethints(cc);
|
||||||
client_update(cc);
|
client_update(cc);
|
||||||
|
|
||||||
if (mapped) {
|
if (mapped)
|
||||||
group_autogroup(cc);
|
group_autogroup(cc);
|
||||||
}
|
|
||||||
|
|
||||||
return (cc);
|
return (cc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user