mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-18 22:05:28 -05:00
feat: add windowrule option scroller_proportion_single
This commit is contained in:
parent
fa96edcf8e
commit
bb30ea9204
4 changed files with 22 additions and 4 deletions
|
|
@ -376,6 +376,7 @@ struct Client {
|
|||
int tearing_hint;
|
||||
int force_tearing;
|
||||
int allow_shortcuts_inhibit;
|
||||
float scroller_proportion_single;
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
|
@ -1182,6 +1183,7 @@ static void apply_rule_properties(Client *c, const ConfigWinRule *r) {
|
|||
APPLY_INT_PROP(c, r, allow_shortcuts_inhibit);
|
||||
|
||||
APPLY_FLOAT_PROP(c, r, scroller_proportion);
|
||||
APPLY_FLOAT_PROP(c, r, scroller_proportion_single);
|
||||
APPLY_FLOAT_PROP(c, r, focused_opacity);
|
||||
APPLY_FLOAT_PROP(c, r, unfocused_opacity);
|
||||
|
||||
|
|
@ -3540,6 +3542,7 @@ void init_client_properties(Client *c) {
|
|||
c->force_maximize = 0;
|
||||
c->force_tearing = 0;
|
||||
c->allow_shortcuts_inhibit = SHORTCUTS_INHIBIT_ENABLE;
|
||||
c->scroller_proportion_single = 0.0f;
|
||||
}
|
||||
|
||||
void // old fix to 0.5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue