summaryrefslogtreecommitdiffstats
path: root/options/options.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2022-05-12 16:26:49 -0500
committerDudemanguy <random342@airmail.cc>2023-07-04 19:16:43 +0000
commitdbc0fcea1bcd3b5ea0319f74a6310f2691c1d371 (patch)
treec4048328397dd550bdb9ddb9e90218b010a8476f /options/options.h
parent3ba446d0b065f867ca262a2e05e4e8d24c7c0783 (diff)
downloadmpv-dbc0fcea1bcd3b5ea0319f74a6310f2691c1d371.tar.bz2
mpv-dbc0fcea1bcd3b5ea0319f74a6310f2691c1d371.tar.xz
player: add --input-cursor-passthrough option
Add an option for allowing pointer events to pass through the mpv window. This could be useful in cases where a user wants to display transparent images/video with mpv and interact with applications beneath the window. This commit implements this functionality for x11 and wayland. Note that whether or not this actually works likely depends on your window manager and/or compositor. E.g. sway ignores pointer events but the entire window becomes draggable when you float it (nothing under the mpv window receives events). Weston behaves as expected however so that is a compositor bug. Excuse the couple of completely unrelated style fixes (both were originally done by me).
Diffstat (limited to 'options/options.h')
-rw-r--r--options/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.h b/options/options.h
index 6dbe509a5b..0125c433f5 100644
--- a/options/options.h
+++ b/options/options.h
@@ -32,6 +32,7 @@ typedef struct mp_vo_opts {
int x11_netwm;
int x11_bypass_compositor;
int x11_present;
+ bool cursor_passthrough;
bool native_keyrepeat;
float panscan;