mirror of
https://github.com/vale981/spectrwm
synced 2025-03-05 09:51:38 -05:00
Fix another horizontal calculation bug. Both this and the previous from
over-zealous cut-n-paste.
This commit is contained in:
parent
00d265b841
commit
a1e07044ac
1 changed files with 3 additions and 9 deletions
12
scrotwm.c
12
scrotwm.c
|
@ -1412,7 +1412,7 @@ stack_master(struct workspace *ws, struct swm_geometry *g, int rot, int flip)
|
|||
struct ws_win *win, *winfocus;
|
||||
int i, j, s, stacks;
|
||||
int w_inc = 1, h_inc, w_base = 1, h_base;
|
||||
int hrh, extra, h_slice, last_h = 0;
|
||||
int hrh, extra = 0, h_slice, last_h = 0;
|
||||
int split, colno, winno, mwin, msize, mscale;
|
||||
int remain, missing, v_slice;;
|
||||
unsigned int mask;
|
||||
|
@ -1467,14 +1467,8 @@ stack_master(struct workspace *ws, struct swm_geometry *g, int rot, int flip)
|
|||
/* adjust for window's requested size increment */
|
||||
remain = (win_g.w - w_base) % w_inc;
|
||||
missing = w_inc - remain;
|
||||
|
||||
if (missing <= extra) {
|
||||
extra -= missing;
|
||||
win_g.w += missing;
|
||||
} else {
|
||||
win_g.w -= remain;
|
||||
extra += remain;
|
||||
}
|
||||
win_g.w -= remain;
|
||||
extra += remain;
|
||||
}
|
||||
|
||||
msize = win_g.w;
|
||||
|
|
Loading…
Add table
Reference in a new issue