Proposed fix to address behaviour when resizing clients using the -1Z anchor ref. #103

pull/105/head
bakkeby 3 years ago
parent 199b363c23
commit 4751d7388d

@ -157,8 +157,6 @@ getfloatpos(int pos, char pCh, int size, char sCh, int min_p, int max_s, int cp,
case 'W': // normal size, position takes precedence
if (pCh == 'S' && cp + size > min_p + max_s)
size = min_p + max_s - cp;
else if (pCh == 'Z' && size > cp - max_s)
size = cp - min_p;
else if (size > max_s)
size = max_s;
@ -170,7 +168,8 @@ getfloatpos(int pos, char pCh, int size, char sCh, int min_p, int max_s, int cp,
cp = min_p;
else if (delta)
cp = min_p + max_s;
}
} else if (pCh == 'Z')
cp -= size - cs;
cs = size;
break;

Loading…
Cancel
Save