forked from AuroraMiddleware/gtk
Merge branch 'gdksurface-wayland-assert' into 'main'
gdksurface-wayland: Fix contradictory assert See merge request GNOME/gtk!4385
This commit is contained in:
commit
b67636747b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user