procstats: hide popup when iconic/hidden.

This commit is contained in:
Alastair Poole 2021-05-21 21:52:41 +01:00
parent 8421011f78
commit 57d3edc3de
1 changed files with 7 additions and 3 deletions

View File

@ -100,12 +100,16 @@ _proc_stats_client_move_cb(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj
Evas_Coord ox, oy, ow, oh;
item = data;
if (!item) return;
if ((!item) || (!item->popup)) return;
evas_object_geometry_get(item->obj_swallow, &ox, &oy, &ow, &oh);
evas_object_move(item->popup, ox + (ow / 2), oy);
if (item->popup)
evas_object_move(item->popup, ox + (ow / 2), oy);
if ((item->client->hidden) || (item->client->iconic))
evas_object_hide(item->popup);
else
evas_object_show(item->popup);
}
static void