diff --git a/gtk/gtkapplication-dbus.c b/gtk/gtkapplication-dbus.c index 667d2cae3e..9fb79f405c 100644 --- a/gtk/gtkapplication-dbus.c +++ b/gtk/gtkapplication-dbus.c @@ -338,7 +338,7 @@ gtk_application_impl_dbus_inhibit (GtkApplicationImpl *impl, res = g_dbus_proxy_call_sync (dbus->sm_proxy, "Inhibit", g_variant_new ("(s@usu)", - g_application_get_application_id (G_APPLICATION (impl->application)), + dbus->app_id, gtk_application_impl_dbus_get_window_system_id (dbus, window), reason, flags),