diff options
author | Dudemanguy <random342@airmail.cc> | 2023-03-07 11:16:45 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-03-08 14:06:22 +0000 |
commit | b313a242c24637484a68c29ee679f45432d85bb7 (patch) | |
tree | 3e1290a5d251f5a0c4a24ab99122a3e16a145fef /video/out/vo.c | |
parent | 855b619cc9872a2919d071166d5b50d6a2a8a708 (diff) | |
download | mpv-b313a242c24637484a68c29ee679f45432d85bb7.tar.bz2 mpv-b313a242c24637484a68c29ee679f45432d85bb7.tar.xz |
wayland: use correct x/y coordinates for the cursor
While adding fractional scale support, the coordinates for wayland
changed to always include the scaling parameter. The pointer stuff
actually did too. However, the check_for_resize function used the
unscaled, local surface coordinates. Likely, it was neccesary at the
time since wl->geometry used to report unscaled coordinates. In light of
that, we can just simply use mouse_x/y instead for this function to make
it work correctly with the right/bottom edges. mouse_unscaled becomes
completely unneccesary, so just drop it.
Some minor style changes included just because.
Diffstat (limited to 'video/out/vo.c')
0 files changed, 0 insertions, 0 deletions