Skip to content

Commit

Permalink
wayland: remove gnome-specific idle-inhibit warning
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Dudemanguy committed Sep 24, 2023
1 parent 140d018 commit de61e6b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions video/out/wayland_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit de61e6b

Please sign in to comment.