Merge branch 'gdksurface-wayland-assert' into 'main'

gdksurface-wayland: Fix contradictory assert

See merge request GNOME/gtk!4385
This commit is contained in:
Matthias Clasen 2022-01-18 23:46:59 +00:00
commit b67636747b

View File

@ -2299,8 +2299,7 @@ gdk_wayland_toplevel_inhibit_idle (GdkToplevel *toplevel)
if (!wayland_toplevel->idle_inhibitor)
{
g_assert (wayland_toplevel->idle_inhibitor &&
wayland_toplevel->idle_inhibitor_refcount > 0);
g_assert (wayland_toplevel->idle_inhibitor_refcount == 0);
wayland_toplevel->idle_inhibitor =
zwp_idle_inhibit_manager_v1_create_inhibitor (display_wayland->idle_inhibit_manager,