1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-28 06:39:32 +00:00

window: Don't unhibit with 0 cookie

The upper layers do not bother whether there's an inhibitor when
calling uninhibit (and shouldn't) so don't put out out warning
when called with 0 cookie.

Closes: #249
This commit is contained in:
Guido Günther 2021-04-01 15:01:17 +02:00 committed by Evangelos Ribeiro Tzaras
parent b04d564bcf
commit 55559d91db

View file

@ -180,8 +180,9 @@ session_inhibit (CallsCallWindow *self, gboolean inhibit)
}
else
{
gtk_application_uninhibit (gtk_window_get_application (GTK_WINDOW (self)),
self->inhibit_cookie);
if (self->inhibit_cookie != 0)
gtk_application_uninhibit (gtk_window_get_application (GTK_WINDOW (self)),
self->inhibit_cookie);
self->inhibit_cookie = 0;
}