Skip to content
Snippets Groups Projects
Commit 25d8e5e3 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

object-manager: look into the proxy object when checking constraints on a global

This allows having constraints on the pw properties and the GObject
properties of the proxy, instead of just on the global properties.

This is only useful for constraints on impl proxies, since the globals
coming from the registry don't have a proxy object associated at the
time they are added in the object managers
parent 012b2c73
No related branches found
No related tags found
No related merge requests found
......@@ -447,7 +447,8 @@ wp_object_manager_is_interested_in_global (WpObjectManager * self,
pw_array_for_each (i, &self->interests) {
if (g_type_is_a (global->type, i->g_type)
&& (!i->constraints ||
check_constraints (i->constraints, global->properties, NULL)))
check_constraints (i->constraints, global->properties,
G_OBJECT (global->proxy))))
{
*wanted_features = i->wanted_features;
return TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment