summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2019-11-26 07:52:53 +0800
committerPhilip Langdale <github.philipl@overt.org>2019-11-29 16:56:20 +0800
commit4c179a27c2fe301d51232934275250b63275f86b (patch)
treebc62f95e3e1afd14548d4aa6f34e87e1493d7557 /video/out/wayland_common.h
parentf09570664fd870cbd7403575c8f2a31e34d4c570 (diff)
downloadmpv-4c179a27c2fe301d51232934275250b63275f86b.tar.bz2
mpv-4c179a27c2fe301d51232934275250b63275f86b.tar.xz
wayland: add grab zone for resizing window with mouse
Today, we support resizing wayland windows when we detect a touch event in a defined grab zone. As part of implementing pseudo-decorations, we should have equivalent functionality for mouse input. And if we detect support for actual decorations we will not activate the grab zone as the decorations will provide this.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index f0c11e080a..2ca7d86a96 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -77,6 +77,8 @@ struct vo_wayland_state {
int pending_vo_events;
int mouse_x;
int mouse_y;
+ int mouse_unscaled_x;
+ int mouse_unscaled_y;
int scaling;
int touch_entries;
uint32_t pointer_id;