mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Some clients fail to setup hints at all, so initalize for them; fallout
from r1.218 switching to malloc - clearly missed this case. found the hard way by brynet@
This commit is contained in:
parent
b8933ebcca
commit
2bbe111cc0
1
client.c
1
client.c
@ -78,6 +78,7 @@ client_init(Window win, struct screen_ctx *sc)
|
|||||||
cc->flags = 0;
|
cc->flags = 0;
|
||||||
cc->stackingorder = 0;
|
cc->stackingorder = 0;
|
||||||
memset(&cc->hint, 0, sizeof(cc->hint));
|
memset(&cc->hint, 0, sizeof(cc->hint));
|
||||||
|
memset(&cc->ch, 0, sizeof(cc->ch));
|
||||||
cc->ptr.x = -1;
|
cc->ptr.x = -1;
|
||||||
cc->ptr.y = -1;
|
cc->ptr.y = -1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user