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

This commit is contained in:
bakkeby 2021-03-30 13:13:15 +02:00
parent 199b363c23
commit 4751d7388d

View File

@ -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;