summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.h
diff options
context:
space:
mode:
authornanahi <130121847+na-na-hi@users.noreply.github.com>2024-02-26 18:37:12 -0500
committersfan5 <sfan5@live.de>2024-03-01 18:25:12 +0100
commit6eedf9b1e94ffd6a0377fd4f073fd399a7093efb (patch)
tree037ed19d2cf75f87c6716bcedf586290ec86dc0d /video/out/x11_common.h
parent9d03b83a6c26341b2dd7c5e1ffc4592219c79730 (diff)
downloadmpv-6eedf9b1e94ffd6a0377fd4f073fd399a7093efb.tar.bz2
mpv-6eedf9b1e94ffd6a0377fd4f073fd399a7093efb.tar.xz
x11_common: implement VOCTRL_BEGIN_DRAGGING
This allows begin-vo-dragging command to initialize a vo dragging request for x11. The last mouse button press event is used for _NET_WM_MOVERESIZE. The hard-coded left mouse button down trigger is scheduled to be removed in a later commit.
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r--video/out/x11_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h
index d88c8899c8..8a3b145161 100644
--- a/video/out/x11_common.h
+++ b/video/out/x11_common.h
@@ -138,6 +138,8 @@ struct vo_x11_state {
Window dnd_src_window;
Atom icc_profile_property;
+
+ XEvent last_button_event;
};
bool vo_x11_init(struct vo *vo);