mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-20 01:40:18 -05:00
fix: some client property missing init
This commit is contained in:
parent
ff18d96e9e
commit
00dab81dbd
1 changed files with 17 additions and 0 deletions
17
src/mango.c
17
src/mango.c
|
|
@ -3753,6 +3753,22 @@ void locksession(struct wl_listener *listener, void *data) {
|
|||
void init_client_properties(Client *c) {
|
||||
c->isfocusing = false;
|
||||
c->isfloating = 0;
|
||||
c->isfakefullscreen = 0;
|
||||
c->isnoanimation = 0;
|
||||
c->isopensilent = 0;
|
||||
c->istagsilent = 0;
|
||||
c->noswallow = 0;
|
||||
c->isterm = 0;
|
||||
c->noblur = 0;
|
||||
c->tearing_hint = 0;
|
||||
c->overview_isfullscreenbak = 0;
|
||||
c->overview_ismaximizescreenbak = 0;
|
||||
c->overview_isfloatingbak = 0;
|
||||
c->pid = 0;
|
||||
c->swallowing = NULL;
|
||||
c->swallowedby = NULL;
|
||||
c->ismaster = 0;
|
||||
c->isleftstack = 0;
|
||||
c->ismaximizescreen = 0;
|
||||
c->isfullscreen = 0;
|
||||
c->need_float_size_reduce = 0;
|
||||
|
|
@ -3804,6 +3820,7 @@ void init_client_properties(Client *c) {
|
|||
c->stack_proportion = 0.0f;
|
||||
c->next_in_stack = NULL;
|
||||
c->prev_in_stack = NULL;
|
||||
memset(c->oldmonname, 0, sizeof(c->oldmonname));
|
||||
memcpy(c->opacity_animation.initial_border_color, bordercolor,
|
||||
sizeof(c->opacity_animation.initial_border_color));
|
||||
memcpy(c->opacity_animation.current_border_color, bordercolor,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue