From 4c179a27c2fe301d51232934275250b63275f86b Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Tue, 26 Nov 2019 07:52:53 +0800 Subject: 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. --- video/out/wayland_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/out/wayland_common.h') 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; -- cgit v1.2.3