wl - handle logicaly dead code by doing the most logical thing

it would seem it wants to send it being allowed if it has handled the
case, so get rid of logically dead coe and make it not dead...

fix CID 1403932
This commit is contained in:
Carsten Haitzler 2020-04-19 01:45:10 +01:00
parent 3d6597d3ec
commit d5d53a0e96
1 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ _e_policy_wl_aux_hint_apply(E_Client *ec)
EINA_LIST_FOREACH(ec->comp_data->aux_hint.hints, l, hint) EINA_LIST_FOREACH(ec->comp_data->aux_hint.hints, l, hint)
{ {
if (!hint->changed) continue; if (!hint->changed) continue;
send = EINA_FALSE; send = EINA_TRUE;
hint->changed = EINA_FALSE; hint->changed = EINA_FALSE;
if (!strcmp(hint->hint, hint_names[E_POLICY_HINT_MSG_USE])) if (!strcmp(hint->hint, hint_names[E_POLICY_HINT_MSG_USE]))
{ {
@ -155,8 +155,8 @@ _e_policy_wl_aux_hint_apply(E_Client *ec)
tec = ec->stack.next; tec = ec->stack.next;
if (tec) e_policy_wl_aux_message_send(tec, "stack_del", "1", NULL); if (tec) e_policy_wl_aux_message_send(tec, "stack_del", "1", NULL);
} }
if (send) else send = EINA_FALSE;
_e_policy_wl_allowed_aux_hint_send(ec, hint->id); if (send) _e_policy_wl_allowed_aux_hint_send(ec, hint->id);
} }
} }