summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authornanahi <130121847+na-na-hi@users.noreply.github.com>2024-02-26 19:18:32 -0500
committersfan5 <sfan5@live.de>2024-03-01 18:25:12 +0100
commitc2129c18f8ecac4133aec59526434ad10f7f6896 (patch)
treec2a571bc0a8fa54215249f8b4342c94cec65fd79 /video/out/wayland_common.h
parent14c5da6f502ff88c8e437858ec2787e218d0587f (diff)
downloadmpv-c2129c18f8ecac4133aec59526434ad10f7f6896.tar.bz2
mpv-c2129c18f8ecac4133aec59526434ad10f7f6896.tar.xz
wayland_common: implement VOCTRL_BEGIN_DRAGGING
This allows begin-vo-dragging command to initialize a vo dragging request for wayland. The last mouse button press seat and serial is used for the request if it is not consumed by interactive resizing.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index 0554d308ba..721d4fb2eb 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -22,6 +22,8 @@
#include "input/event.h"
#include "vo.h"
+struct vo_wayland_seat;
+
typedef struct {
uint32_t format;
uint32_t padding;
@@ -155,6 +157,7 @@ struct vo_wayland_state {
struct wl_surface *cursor_surface;
bool cursor_visible;
int allocated_cursor_scale;
+ struct vo_wayland_seat *last_button_seat;
};
bool vo_wayland_check_visible(struct vo *vo);