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/wayland_common.h | |
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/wayland_common.h')
-rw-r--r-- | video/out/wayland_common.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index c9921cc60b..d22e91d5e5 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -75,8 +75,6 @@ struct vo_wayland_state { bool state_change; bool toplevel_configured; int display_fd; - int mouse_unscaled_x; - int mouse_unscaled_y; int mouse_x; int mouse_y; int pending_vo_events; |