summaryrefslogtreecommitdiff
path: root/render/fx_renderer
diff options
context:
space:
mode:
authorKalyan Sriram <[email protected]>2020-04-23 01:00:06 -0700
committerGitHub <[email protected]>2020-04-23 10:00:06 +0200
commitce07a9bde4cda0a0b0a7ceff1ad568f7761acebc (patch)
tree771e99305cb5f40e9b4565e9966d477fc75939c4 /render/fx_renderer
parentbb1fb4bbbf9fa63ee033cb7ca94cdab0dd6523ad (diff)
tinywl: fix geo_box bug in cursor resizing
While trying out the tinywl code, I found that the resize mode was behaving weirdly ... so I looked into code. Turns out the `begin_interactive` method stores the cursor position plus the geo_box position; however, `process_cursor_resize` wasn't taking this into account, causing windows to jump down in size unexpectedly when resized and lose alignment with the cursor. To fix this, I simply added a member to the `tinywl_server` struct that stores the geo_box when the mouse enters grab mode, and I referenced that data in the resize method. I considered polling for this data every time instead of storing it in the server struct, but 1) since changes in this value are not relevant and 2) it could potentially decrease performance (I don't know enough about wlroots to know how much) I decided to just store it. I can change this if desired.
Diffstat (limited to 'render/fx_renderer')
0 files changed, 0 insertions, 0 deletions