diff --git a/lib/wp/object-manager.c b/lib/wp/object-manager.c index d40baa4af1cfd046ec84ea61434b7edee6f1f16f..fe599d4f00af3b282d27f6752243f92506f0a4a5 100644 --- a/lib/wp/object-manager.c +++ b/lib/wp/object-manager.c @@ -1071,6 +1071,9 @@ wp_registry_prepare_new_global (WpRegistry * self, guint32 id, global->proxy = proxy; g_ptr_array_add (self->tmp_globals, wp_global_ref (global)); + /* ensure we have 'object.id' so that we can filter by id on object managers */ + wp_properties_setf (global->properties, PW_KEY_OBJECT_ID, "%u", global->id); + /* schedule exposing when adding the first global */ if (self->tmp_globals->len == 1) { wp_core_sync (core, NULL, (GAsyncReadyCallback) expose_tmp_globals, self);