This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch network-manager
in repository enlightenment.

View the commit online.

commit 64a2235b8a67e128b1414ecf4bcfbbf199ef5e58
Author: Alastair Poole <[email protected]>
AuthorDate: Wed Mar 18 02:17:24 2026 +0000

    procstats: handle desktop change as per fullscreen.
    
    This fixes a small bug where the popup would remain following a
    desk change.
---
 src/modules/procstats/e_mod_main.c | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/src/modules/procstats/e_mod_main.c b/src/modules/procstats/e_mod_main.c
index 3e126c95e..87405438c 100644
--- a/src/modules/procstats/e_mod_main.c
+++ b/src/modules/procstats/e_mod_main.c
@@ -8,8 +8,7 @@
 
 #define POLL_INTERVAL 2.0
 
-static Ecore_Event_Handler *_proc_stats_handler_fullscreen = NULL;
-
+static Eina_List      *handlers = NULL;
 static int64_t         _mem_total;
 
 typedef struct
@@ -145,6 +144,12 @@ _proc_stats_handler_fullscreen_check_cb(void *data EINA_UNUSED, int type EINA_UN
    return ECORE_CALLBACK_PASS_ON;
 }
 
+static Eina_Bool
+_proc_stats_handler_client_hide_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event)
+{
+   return _proc_stats_handler_fullscreen_check_cb(NULL, 0, event);
+}
+
 static Eina_Bool
 _proc_stats_client_exists(E_Client *ec)
 {
@@ -582,8 +587,11 @@ e_modapi_init(E_Module *m)
    //module->sleeper = e_powersave_sleeper_new();
    module->poll_interval = POLL_INTERVAL;
 
-   _proc_stats_handler_fullscreen = ecore_event_handler_add
-      (E_EVENT_CLIENT_FULLSCREEN, _proc_stats_handler_fullscreen_check_cb, NULL);
+   handlers = eina_list_append(handlers, ecore_event_handler_add
+      (E_EVENT_CLIENT_FULLSCREEN, _proc_stats_handler_fullscreen_check_cb, NULL));
+   handlers = eina_list_append(handlers, ecore_event_handler_add
+      (E_EVENT_CLIENT_HIDE, _proc_stats_handler_client_hide_cb, NULL));
+
    _proc_stats_thread_feedback_cb(module, NULL, proc_info_all_children_get());
 
    module->thread = ecore_thread_feedback_run(_proc_stats_thread,
@@ -596,6 +604,7 @@ E_API int
 e_modapi_shutdown(E_Module *m EINA_UNUSED)
 {
    Proc_Stats_Client *client;
+   Ecore_Event_Handler *h;
    Proc_Stats_Module *module = _this_module;
 
    ecore_thread_cancel(module->thread);
@@ -603,8 +612,8 @@ e_modapi_shutdown(E_Module *m EINA_UNUSED)
 
    //e_powersave_sleeper_free(module->sleeper);
 
-   ecore_event_handler_del(_proc_stats_handler_fullscreen);
-   _proc_stats_handler_fullscreen = NULL;
+   EINA_LIST_FREE(handlers, h)
+     ecore_event_handler_del(h);
 
    EINA_LIST_FREE(module->clients, client)
      _proc_stats_client_del(client);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to