mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
cvsimport
This commit is contained in:
commit
e4ccad30ce
11
client.c
11
client.c
@ -63,7 +63,6 @@ client_init(Window win, struct screen_ctx *sc)
|
|||||||
{
|
{
|
||||||
struct client_ctx *cc;
|
struct client_ctx *cc;
|
||||||
XWindowAttributes wattr;
|
XWindowAttributes wattr;
|
||||||
long state;
|
|
||||||
int mapped;
|
int mapped;
|
||||||
|
|
||||||
if (win == None)
|
if (win == None)
|
||||||
@ -125,16 +124,16 @@ client_init(Window win, struct screen_ctx *sc)
|
|||||||
/* Notify client of its configuration. */
|
/* Notify client of its configuration. */
|
||||||
client_config(cc);
|
client_config(cc);
|
||||||
|
|
||||||
if ((state = client_get_wm_state(cc)) < 0)
|
|
||||||
state = NormalState;
|
|
||||||
|
|
||||||
(state == IconicState) ? client_hide(cc) : client_unhide(cc);
|
|
||||||
|
|
||||||
TAILQ_INSERT_TAIL(&sc->clientq, cc, entry);
|
TAILQ_INSERT_TAIL(&sc->clientq, cc, entry);
|
||||||
|
|
||||||
xu_ewmh_net_client_list(sc);
|
xu_ewmh_net_client_list(sc);
|
||||||
xu_ewmh_restore_net_wm_state(cc);
|
xu_ewmh_restore_net_wm_state(cc);
|
||||||
|
|
||||||
|
if (client_get_wm_state(cc) == IconicState)
|
||||||
|
client_hide(cc);
|
||||||
|
else
|
||||||
|
client_unhide(cc);
|
||||||
|
|
||||||
if (mapped)
|
if (mapped)
|
||||||
group_autogroup(cc);
|
group_autogroup(cc);
|
||||||
|
|
||||||
|
2
conf.c
2
conf.c
@ -96,7 +96,7 @@ conf_ignore(struct conf *c, const char *name)
|
|||||||
{
|
{
|
||||||
struct winname *wn;
|
struct winname *wn;
|
||||||
|
|
||||||
wn = xcalloc(1, sizeof(*wn));
|
wn = xmalloc(sizeof(*wn));
|
||||||
wn->name = xstrdup(name);
|
wn->name = xstrdup(name);
|
||||||
TAILQ_INSERT_TAIL(&c->ignoreq, wn, entry);
|
TAILQ_INSERT_TAIL(&c->ignoreq, wn, entry);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user