mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-25 06:59:50 -05:00
feat: add option scroller_default_proportion_single
This commit is contained in:
parent
04e16876e2
commit
a2d216300e
4 changed files with 8 additions and 1 deletions
2
maomao.c
2
maomao.c
|
|
@ -5969,7 +5969,7 @@ void scroller(Monitor *m, unsigned int gappo, unsigned int gappi) {
|
|||
if (n == 1) {
|
||||
c = tempClients[0];
|
||||
target_geom.height = m->w.height - 2 * gappov;
|
||||
target_geom.width = max_client_width * c->scroller_proportion;
|
||||
target_geom.width = (m->w.width - 2 * gappoh) * scroller_default_proportion_single;
|
||||
target_geom.x = m->w.x + (m->w.width - target_geom.width) / 2;
|
||||
target_geom.y = m->w.y + (m->w.height - target_geom.height) / 2;
|
||||
resize(c, target_geom, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue