From d7f22721a203c42db98465af328aec334248d39e Mon Sep 17 00:00:00 2001 From: Stephen 'Okra' Houston Date: Wed, 14 Dec 2016 10:23:25 -0600 Subject: [PATCH] Luncher: Add preview windows to the popup on exec if they are already visible. --- src/modules/luncher/bar.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/modules/luncher/bar.c b/src/modules/luncher/bar.c index eb47f078a..27751bd38 100644 --- a/src/modules/luncher/bar.c +++ b/src/modules/luncher/bar.c @@ -1298,15 +1298,21 @@ _bar_cb_exec_new(void *data EINA_UNUSED, int type, E_Exec_Instance *ex) { if (!eina_list_data_find(ic->execs, ex)) ic->execs = eina_list_append(ic->execs, ex); - evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW, - _bar_exec_new_show, ic); + if (evas_object_visible_get(ec->frame)) + _bar_exec_new_show(ic, NULL, NULL, NULL); + else + evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW, + _bar_exec_new_show, ic); } else { if (!eina_list_data_find(ic->clients, ec)) ic->clients = eina_list_append(ic->clients, ec); - evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW, - _bar_exec_new_show, ic); + if (evas_object_visible_get(ec->frame)) + _bar_exec_new_show(ic, NULL, NULL, NULL); + else + evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW, + _bar_exec_new_show, ic); } } else