mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
new -> init
This commit is contained in:
parent
3a38686137
commit
2b926784ba
2
calmwm.h
2
calmwm.h
@ -331,7 +331,7 @@ void client_lower(struct client_ctx *);
|
|||||||
void client_map(struct client_ctx *);
|
void client_map(struct client_ctx *);
|
||||||
void client_maximize(struct client_ctx *);
|
void client_maximize(struct client_ctx *);
|
||||||
void client_move(struct client_ctx *);
|
void client_move(struct client_ctx *);
|
||||||
struct client_ctx *client_new(Window, struct screen_ctx *, int);
|
struct client_ctx *client_init(Window, struct screen_ctx *, int);
|
||||||
void client_ptrsave(struct client_ctx *);
|
void client_ptrsave(struct client_ctx *);
|
||||||
void client_ptrwarp(struct client_ctx *);
|
void client_ptrwarp(struct client_ctx *);
|
||||||
void client_raise(struct client_ctx *);
|
void client_raise(struct client_ctx *);
|
||||||
|
2
client.c
2
client.c
@ -55,7 +55,7 @@ client_find(Window win)
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct client_ctx *
|
struct client_ctx *
|
||||||
client_new(Window win, struct screen_ctx *sc, int mapped)
|
client_init(Window win, struct screen_ctx *sc, int mapped)
|
||||||
{
|
{
|
||||||
struct client_ctx *cc;
|
struct client_ctx *cc;
|
||||||
XClassHint xch;
|
XClassHint xch;
|
||||||
|
2
screen.c
2
screen.c
@ -74,7 +74,7 @@ screen_init(int which)
|
|||||||
if (winattr.override_redirect ||
|
if (winattr.override_redirect ||
|
||||||
winattr.map_state != IsViewable)
|
winattr.map_state != IsViewable)
|
||||||
continue;
|
continue;
|
||||||
(void)client_new(wins[i], sc, winattr.map_state != IsUnmapped);
|
(void)client_init(wins[i], sc, winattr.map_state != IsUnmapped);
|
||||||
}
|
}
|
||||||
XFree(wins);
|
XFree(wins);
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ xev_handle_maprequest(XEvent *ee)
|
|||||||
|
|
||||||
if ((cc = client_find(e->window)) == NULL) {
|
if ((cc = client_find(e->window)) == NULL) {
|
||||||
XGetWindowAttributes(X_Dpy, e->window, &xattr);
|
XGetWindowAttributes(X_Dpy, e->window, &xattr);
|
||||||
cc = client_new(e->window, screen_fromroot(xattr.root), 1);
|
cc = client_init(e->window, screen_fromroot(xattr.root), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((cc->flags & CLIENT_IGNORE) == 0)
|
if ((cc->flags & CLIENT_IGNORE) == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user