diff options
author | Greg Depoire--Ferrer <greg.depoire@gmail.com> | 2020-04-26 17:45:45 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-04-28 21:44:27 +0200 |
commit | 21397e2b4a86443dde31ba36cf4f6b7fbb1b662c (patch) | |
tree | fda1650fe62adf8e896967d6a781b433e7e5b31d /protocol | |
parent | 321537ee92e2a9eeb115434181c12b4ccf8f9ef9 (diff) |
tinywl: Fix wrong anchor point while resizing a window
Previously, when dragging the left border of a window with the mouse in tinywl,
there was a bug where it snap the top level surface's geometry X coordinate
directly to the position of the mouse, as if you started the resize right on the
border. This also affected the other (right, top and bottom) borders.
I think that the previous resize code was hard to understand. Honestly I
have not spent a lot of time trying to understand why it didn't work and
I wrote another resize algorithm instead: now, instead of working directly
with widths and heights which are complicated, we work with the borders (left,
right, top, bottom). This is easier to understand IMO.
Note: I originally fixed this [in the waybox compositor](https://github.com/wizbright/waybox/pull/23) but
then I realized that the code was taken from tinywl and that it had the same
issues so I copied my fix for tinywl.
Diffstat (limited to 'protocol')
0 files changed, 0 insertions, 0 deletions