mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-03 09:01:47 -05:00
fix: error width for unfocused window of scroller layout
This commit is contained in:
parent
38d41e1483
commit
fdbfaf902d
2 changed files with 4 additions and 2 deletions
4
maomao.c
4
maomao.c
|
|
@ -1460,7 +1460,7 @@ applyrules(Client *c) {
|
||||||
r->animation_type_close == NULL ? c->animation_type_close : r->animation_type_close;
|
r->animation_type_close == NULL ? c->animation_type_close : r->animation_type_close;
|
||||||
c->scroller_proportion = r->scroller_proportion > 0
|
c->scroller_proportion = r->scroller_proportion > 0
|
||||||
? r->scroller_proportion
|
? r->scroller_proportion
|
||||||
: scroller_default_proportion;
|
: c->scroller_proportion;
|
||||||
c->isnoborder = r->isnoborder > 0 ? r->isnoborder : c->isnoborder;
|
c->isnoborder = r->isnoborder > 0 ? r->isnoborder : c->isnoborder;
|
||||||
newtags = r->tags > 0 ? r->tags | newtags : newtags;
|
newtags = r->tags > 0 ? r->tags | newtags : newtags;
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
@ -5608,6 +5608,7 @@ void scroller(Monitor *m, unsigned int gappo, unsigned int gappi) {
|
||||||
|
|
||||||
for (i = 1; i <= focus_client_index; i++) {
|
for (i = 1; i <= focus_client_index; i++) {
|
||||||
c = tempClients[focus_client_index - i];
|
c = tempClients[focus_client_index - i];
|
||||||
|
target_geom.width = max_client_width * c->scroller_proportion;
|
||||||
target_geom.x = tempClients[focus_client_index - i + 1]->geom.x - gappih -
|
target_geom.x = tempClients[focus_client_index - i + 1]->geom.x - gappih -
|
||||||
target_geom.width;
|
target_geom.width;
|
||||||
resize(c, target_geom, 0);
|
resize(c, target_geom, 0);
|
||||||
|
|
@ -5615,6 +5616,7 @@ void scroller(Monitor *m, unsigned int gappo, unsigned int gappi) {
|
||||||
|
|
||||||
for (i = 1; i < n - focus_client_index; i++) {
|
for (i = 1; i < n - focus_client_index; i++) {
|
||||||
c = tempClients[focus_client_index + i];
|
c = tempClients[focus_client_index + i];
|
||||||
|
target_geom.width = max_client_width * c->scroller_proportion;
|
||||||
target_geom.x = tempClients[focus_client_index + i - 1]->geom.x + gappih +
|
target_geom.x = tempClients[focus_client_index + i - 1]->geom.x + gappih +
|
||||||
tempClients[focus_client_index + i - 1]->geom.width;
|
tempClients[focus_client_index + i - 1]->geom.width;
|
||||||
resize(c, target_geom, 0);
|
resize(c, target_geom, 0);
|
||||||
|
|
|
||||||
|
|
@ -801,7 +801,7 @@ void parse_config_line(Config *config, const char *line) {
|
||||||
rule->height = -1;
|
rule->height = -1;
|
||||||
rule->animation_type_open = NULL;
|
rule->animation_type_open = NULL;
|
||||||
rule->animation_type_close = NULL;
|
rule->animation_type_close = NULL;
|
||||||
rule->scroller_proportion = -1;
|
rule->scroller_proportion = 0;
|
||||||
rule->id = NULL;
|
rule->id = NULL;
|
||||||
rule->title = NULL;
|
rule->title = NULL;
|
||||||
rule->tags = 0;
|
rule->tags = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue