summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2019-12-30 15:22:02 -0600
committerDudemanguy <random342@airmail.cc>2020-01-01 20:27:54 +0000
commit5feee11e43a0907306db1df993cf1cd11c8596d9 (patch)
treef4ac14378467506e49f966072a2d5beee5e266e2
parent7d08491cd993f287c549712e36e6fe3dc021ba30 (diff)
downloadmpv-5feee11e43a0907306db1df993cf1cd11c8596d9.tar.bz2
mpv-5feee11e43a0907306db1df993cf1cd11c8596d9.tar.xz
wayland: disable by default for gnome
It turns out that gnome wayland still has very serious issues that make it unusable for playback with mpv. Other compositors mostly behave fine (Plasma is just missing feature but it's not seriously broken), so GNOME gets the special honor of having a warning printed out. The only solution for GNOME users at this time of writing is to either use the Xorg session or use another wayland compositor.
-rw-r--r--video/out/wayland_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index e4ea6d3687..5a9a7115d1 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -1110,6 +1110,10 @@ int vo_wayland_init(struct vo *vo)
if (create_xdg_surface(wl))
return false;
+ const char *xdg_current_desktop = getenv("XDG_CURRENT_DESKTOP");
+ if (xdg_current_desktop != NULL && strstr(xdg_current_desktop, "GNOME"))
+ MP_WARN(wl, "GNOME's wayland compositor is known to have many serious issues with mpv. Switch to GNOME's xorg session for the best experience.\n");
+
if (wl->dnd_devman && wl->seat) {
wl->dnd_ddev = wl_data_device_manager_get_data_device(wl->dnd_devman, wl->seat);
wl_data_device_add_listener(wl->dnd_ddev, &data_device_listener, wl);