feat: add windowrule option scroller_proportion_single

This commit is contained in:
DreamMaoMao
2025-11-14 15:39:04 +08:00
parent 514c916678
commit 407c9d74a4
4 changed files with 22 additions and 4 deletions

View File

@@ -376,6 +376,7 @@ struct Client {
int tearing_hint;
int force_tearing;
int allow_shortcuts_inhibit;
float scroller_proportion_single;
};
typedef struct {
@@ -1173,6 +1174,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);
@@ -3623,6 +3625,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