mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-19 14:33:16 -04:00
fix: scroller proportion option miss apply in windowrule
This commit is contained in:
parent
d81ca73ea1
commit
ce1879d417
2 changed files with 21 additions and 2 deletions
12
src/mango.c
12
src/mango.c
|
|
@ -381,6 +381,8 @@ struct Client {
|
|||
int32_t is_in_scratchpad;
|
||||
int32_t iscustomsize;
|
||||
int32_t iscustompos;
|
||||
int32_t iscustom_scroller_proportion;
|
||||
int32_t iscustom_scroller_proportion_single;
|
||||
int32_t is_scratchpad_show;
|
||||
int32_t isglobal;
|
||||
int32_t isnoborder;
|
||||
|
|
@ -1658,6 +1660,14 @@ void applyrules(Client *c) {
|
|||
c->isfloating = 1;
|
||||
}
|
||||
|
||||
if (r->scroller_proportion > 0.0f) {
|
||||
c->iscustom_scroller_proportion = 1;
|
||||
}
|
||||
|
||||
if (r->scroller_proportion_single > 0.0f) {
|
||||
c->iscustom_scroller_proportion_single = 1;
|
||||
}
|
||||
|
||||
// set geometry of floating client
|
||||
|
||||
if (r->width > 1)
|
||||
|
|
@ -4411,6 +4421,8 @@ void init_client_properties(Client *c) {
|
|||
c->ignore_minimize = 1;
|
||||
c->iscustomsize = 0;
|
||||
c->iscustompos = 0;
|
||||
c->iscustom_scroller_proportion = 0;
|
||||
c->iscustom_scroller_proportion_single = 0;
|
||||
c->master_mfact_per = 0.0f;
|
||||
c->master_inner_per = 0.0f;
|
||||
c->stack_inner_per = 0.0f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue