[qwaq] Fix last window drag-resize corner case

I think I got distracted by the HoM bug while testing corners. Anyway,
with this, window resize by dragging seems to work well.
This commit is contained in:
Bill Currie 2020-03-25 14:45:55 +09:00
parent e554202c24
commit ee6b078f18

View file

@ -116,7 +116,7 @@
ds.x = bound (1, xlen + delta.x, b.width - xpos) - xlen;
} else if (sender == bottomLeftDrag) {
dp.x = bound (0, xpos + delta.x, xpos + xlen - delta.x - 1) - xpos;
ds.x = bound (1, xlen - delta.x, b.width - xpos) - xlen;
ds.x = bound (1, xlen - delta.x, b.width - xpos - delta.x) - xlen;
ds.y = bound (1, ylen + delta.y, b.height - ypos) - ylen;
} else if (sender == bottomRightDrag) {
ds.x = bound (1, xlen + delta.x, b.width - xpos) - xlen;