![Jasper St. Pierre](/assets/img/avatar_default.png)
We need the old rect for two purposes: to find the x/y in a resize-only action, and to pass into the constraints code for nefarious purposes. The constraints code takes a frame rectangle, so we convert the original client rect into a frame rect, but never convert it back since it's unused for the rest of the function. Instead of playing games with the variables, just have two, separately-scoped variables. One is the client rect, the other is the frame rect.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%