mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
Proposed fix to address behaviour when resizing clients using the -1Z anchor ref. #103
This commit is contained in:
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…
Reference in New Issue
Block a user