mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-20 14:33:14 -04:00
fix: scroller proportion option miss apply in windowrule
This commit is contained in:
parent
4e25a6c64b
commit
d0cd2beeb6
2 changed files with 21 additions and 2 deletions
12
src/mango.c
12
src/mango.c
|
|
@ -383,6 +383,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;
|
||||
|
|
@ -1677,6 +1679,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)
|
||||
|
|
@ -4333,6 +4343,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