mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
cmap -> colormap in client_ctx
This commit is contained in:
parent
af13c08108
commit
fe44d1dfce
2
calmwm.h
2
calmwm.h
@ -132,7 +132,7 @@ struct client_ctx {
|
|||||||
struct screen_ctx *sc;
|
struct screen_ctx *sc;
|
||||||
Window win;
|
Window win;
|
||||||
XSizeHints *size;
|
XSizeHints *size;
|
||||||
Colormap cmap;
|
Colormap colormap;
|
||||||
u_int bwidth; /* border width */
|
u_int bwidth; /* border width */
|
||||||
struct geom geom, savegeom;
|
struct geom geom, savegeom;
|
||||||
struct {
|
struct {
|
||||||
|
4
client.c
4
client.c
@ -92,7 +92,7 @@ client_new(Window win, struct screen_ctx *sc, int mapped)
|
|||||||
cc->geom.y = wattr.y;
|
cc->geom.y = wattr.y;
|
||||||
cc->geom.w = wattr.width;
|
cc->geom.w = wattr.width;
|
||||||
cc->geom.h = wattr.height;
|
cc->geom.h = wattr.height;
|
||||||
cc->cmap = wattr.colormap;
|
cc->colormap = wattr.colormap;
|
||||||
|
|
||||||
if (wattr.map_state != IsViewable) {
|
if (wattr.map_state != IsViewable) {
|
||||||
client_placecalc(cc);
|
client_placecalc(cc);
|
||||||
@ -202,7 +202,7 @@ client_setactive(struct client_ctx *cc, int fg)
|
|||||||
sc = cc->sc;
|
sc = cc->sc;
|
||||||
|
|
||||||
if (fg) {
|
if (fg) {
|
||||||
XInstallColormap(X_Dpy, cc->cmap);
|
XInstallColormap(X_Dpy, cc->colormap);
|
||||||
XSetInputFocus(X_Dpy, cc->win,
|
XSetInputFocus(X_Dpy, cc->win,
|
||||||
RevertToPointerRoot, CurrentTime);
|
RevertToPointerRoot, CurrentTime);
|
||||||
conf_grab_mouse(cc);
|
conf_grab_mouse(cc);
|
||||||
|
Loading…
Reference in New Issue
Block a user