dbus-proxy: Fix incorrect check of name policy

It was checking against the wrong enum type
tingping/wmclass
Alexander Larsson 2015-08-27 16:14:48 +02:00
parent f5aba30ade
commit 53df418814
1 changed files with 1 additions and 1 deletions

View File

@ -1815,7 +1815,7 @@ got_buffer_from_client (XdgAppProxyClient *client, ProxySide *side, Buffer *buff
if (validate_arg0_name (client, buffer, policy_from_handler (handler), &name_policy))
goto handle_pass;
if (name_policy < (int)HANDLE_VALIDATE_SEE)
if (name_policy < (int)XDG_APP_POLICY_SEE)
goto handle_hide;
else
goto handle_deny;