diff options
author | Dudemanguy <random342@airmail.cc> | 2023-08-27 11:01:15 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-09-24 01:59:07 +0000 |
commit | de61e6b67cd52a72892308ba4a1f82ee3ebda5c8 (patch) | |
tree | ca6bed0ce17c02293f3c211983cf79f2ed32f9c7 | |
parent | 140d0185787f0a478ded0b0694e2d56b812e37db (diff) | |
download | mpv-de61e6b67cd52a72892308ba4a1f82ee3ebda5c8.tar.bz2 mpv-de61e6b67cd52a72892308ba4a1f82ee3ebda5c8.tar.xz |
wayland: remove gnome-specific idle-inhibit warning
Unbelievably, mutter actually supports the idle inhibit protocol now
after many years of pain*. Let's remove this hacky warning.
*: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3145
-rw-r--r-- | video/out/wayland_common.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 48fbbf2bca..6072a9e58c 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -2306,10 +2306,6 @@ bool vo_wayland_init(struct vo *vo) if (!wl->idle_inhibit_manager) { MP_VERBOSE(wl, "Compositor doesn't support the %s protocol!\n", zwp_idle_inhibit_manager_v1_interface.name); - - 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 lacks support for the idle inhibit protocol. This means the screen can blank during playback.\n"); } wl->opts = mp_get_config_group(wl, wl->vo->global, &wayland_conf); |