Luncher: Don't update and show the preview on client del unless the preview exists.

This commit is contained in:
Stephen 'Okra' Houston 2017-02-07 11:47:35 -06:00
parent 90c120985a
commit ed1d8ac971
1 changed files with 4 additions and 4 deletions

View File

@ -1164,8 +1164,8 @@ _bar_cb_client_remove(void *data EINA_UNUSED, int type EINA_UNUSED, E_Event_Clie
if (!ic->in_order)
_bar_icon_del(inst, ic);
}
else if (ic->preview)
{
else if (ic->preview && (current_preview == ic->preview))
{
_bar_icon_preview_show(ic);
}
}
@ -1213,7 +1213,7 @@ _bar_cb_exec_del(void *data EINA_UNUSED, int type EINA_UNUSED, E_Exec_Instance *
if (!ic->in_order)
_bar_icon_del(inst, ic);
}
else if (ic->preview)
else if (ic->preview && (current_preview == ic->preview))
{
_bar_icon_preview_show(ic);
}
@ -1325,7 +1325,7 @@ _bar_cb_exec_client_prop(void *data EINA_UNUSED, int type EINA_UNUSED, E_Event_C
elm_layout_signal_emit(ic->o_layout, ori, "e");
}
}
else if (ic->preview)
else if (ic->preview && (current_preview == ic->preview))
{
_bar_icon_preview_show(ic);
}