This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enlightenment.
View the commit online.
commit 3babddceb09d25ba6f0c27a555e50158d8513db3
Author: Carsten Haitzler <[email protected]>
AuthorDate: Sun Feb 15 17:27:43 2026 +0000
clipboard - move ewin init to later to allow display to come up
in a wl world the wl compositor is not up yet on mod init... so delay
creating window
---
src/modules/clipboard/e_mod_main.c | 11 ++++++++++-
src/modules/clipboard/e_mod_main.h | 1 +
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/modules/clipboard/e_mod_main.c b/src/modules/clipboard/e_mod_main.c
index 2b5c72091..2e7fed051 100644
--- a/src/modules/clipboard/e_mod_main.c
+++ b/src/modules/clipboard/e_mod_main.c
@@ -509,6 +509,14 @@ _cb_config_show(void *data,
_clipboard_config_show(data, NULL);
}
+static Eina_Bool
+_cb_init_timer(void *data EINA_UNUSED)
+{
+ mod.init_timer = NULL;
+ mod.ewin = elm_win_add(NULL, NULL, ELM_WIN_BASIC);
+ return EINA_FALSE;
+}
+
E_API void *
e_modapi_init(E_Module *m)
{
@@ -530,7 +538,7 @@ e_modapi_init(E_Module *m)
_("Clipboard Settings"), NULL,
"edit-paste", config_clipboard_module);
memset(&mod, 0, sizeof(mod));
- mod.ewin = elm_win_add(NULL, NULL, ELM_WIN_BASIC);
+ mod.init_timer = ecore_timer_add(1.0, _cb_init_timer, NULL);
elm_cnp_selection_loss_callback_set(e_comp->evas,
ELM_SEL_TYPE_CLIPBOARD,
_clipboard_cb_elm_selection_lost,
@@ -555,6 +563,7 @@ e_modapi_shutdown(E_Module *m EINA_UNUSED)
if (delay_sel_timer) ecore_timer_del(delay_sel_timer);
delay_sel_timer = NULL;
E_FREE_LIST(mod.handles, ecore_event_handler_del);
+ if (mod.init_timer) ecore_timer_del(mod.init_timer);
if (mod.ewin) evas_object_del(mod.ewin);
memset(&mod, 0, sizeof(mod));
diff --git a/src/modules/clipboard/e_mod_main.h b/src/modules/clipboard/e_mod_main.h
index 6b9c51759..4d1566e03 100644
--- a/src/modules/clipboard/e_mod_main.h
+++ b/src/modules/clipboard/e_mod_main.h
@@ -57,6 +57,7 @@ struct _Mod
Eina_List *handles; // event handlers
Elm_Sel_Type sel_type; // type of last sel
Eina_List *instances; // all instances of gadgets
+ Ecore_Timer *init_timer; // delayed init timer
};
#define LABEL_MIN 5
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.