diff options
author | Dudemanguy <random342@airmail.cc> | 2020-10-05 09:12:29 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2020-10-06 17:45:59 +0000 |
commit | 015b6768759c8bd8cc815be01123ef95c192f3c5 (patch) | |
tree | 537462cd5465915d2537c2e0e088eb388da3976b /video/out/wayland_common.h | |
parent | 39f4fd0dc7e025af5c653e43dc05e71455d99570 (diff) | |
download | mpv-015b6768759c8bd8cc815be01123ef95c192f3c5.tar.bz2 mpv-015b6768759c8bd8cc815be01123ef95c192f3c5.tar.xz |
wayland: add wayland-display-socket option
As per the client API, a client can connect to any arbitrary wayland
socket. mpv has always just passed NULL which connected to the
compositor currently in use, but one could just as easily pass the name
of a different socket (i.e. the value of WAYLAND_DISPLAY). Here, we just
expose this argument as a user configurable option. If the user passes a
socket name that does not exist, then print a warning and fall back to
NULL.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r-- | video/out/wayland_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index 27f4f87b0e..ec8dc83c97 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -27,6 +27,7 @@ struct wayland_opts { int disable_vsync; + char *display_socket; int edge_pixels_pointer; int edge_pixels_touch; }; |