summaryrefslogtreecommitdiff
path: root/render/fx_renderer
diff options
context:
space:
mode:
authorGreg Depoire--Ferrer <[email protected]>2020-04-26 17:45:45 +0200
committerDrew DeVault <[email protected]>2020-04-28 21:44:27 +0200
commit3cd164925b6d5ee15d1245bf1ef2afd7f356eeac (patch)
treeb8d533e811d7f3b62945e9742c2ad2e68fd88caa /render/fx_renderer
parentf13f2d8c4ac4c4cdc1d211a17275492219de5c2c (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 'render/fx_renderer')
0 files changed, 0 insertions, 0 deletions