1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-12 15:47:35 +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,6 +180,7 @@ session_inhibit (CallsCallWindow *self, gboolean inhibit)
} }
else else
{ {
if (self->inhibit_cookie != 0)
gtk_application_uninhibit (gtk_window_get_application (GTK_WINDOW (self)), gtk_application_uninhibit (gtk_window_get_application (GTK_WINDOW (self)),
self->inhibit_cookie); self->inhibit_cookie);
self->inhibit_cookie = 0; self->inhibit_cookie = 0;