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

git pushed a commit to branch devs/cedric/wl/ecore-evas-fixes
in repository efl.

View the commit online.

commit f94202a4a6f8ef34f663a774032a68bd5f4bc97a
Author: Cedric BAIL <[email protected]>
AuthorDate: Fri Nov 27 22:05:28 2026 -0600

    ecore_evas:wl: create windows as toplevels
    
    Since ecore_wl2 stopped making every window a toplevel on creation,
    a new Ecore_Wl2_Window is ECORE_WL2_WINDOW_TYPE_NONE, and
    ecore_wl2_window_show() never gives such a window a shell surface.
    Elementary always sets the type itself, but a plain Ecore_Evas client
    such as expedite created a wl_surface, committed it and rendered into
    it without ever sending get_xdg_surface/get_toplevel, so the
    compositor never mapped it on either wayland_shm or wayland_egl.
    
    Default the window to a toplevel when ecore_evas creates it. Callers
    that want another type, elementary included, still override it with
    ecore_wl2_window_type_set() or ecore_evas_wayland_type_set().
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
 src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 1474c091d3..c247e3dcc6 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -3128,6 +3128,10 @@ _ecore_evas_wl_common_new_internal(const char *disp_name, Ecore_Window parent, i
    wdata->display = ewd;
 
    wdata->win = ecore_wl2_window_new(ewd, p, x, y, w, h);
+   /* ecore_wl2 windows start out as ECORE_WL2_WINDOW_TYPE_NONE, which never
+    * get a shell surface and so are never mapped. An Ecore_Evas is a normal
+    * window unless told otherwise; elementary sets its own type anyway. */
+   ecore_wl2_window_type_set(wdata->win, ECORE_WL2_WINDOW_TYPE_TOPLEVEL);
    ecore_wl2_window_close_callback_set(wdata->win,
                                        _ecore_evas_wl_common_win_close, ee);
    ee->prop.window = (Ecore_Window)wdata->win;

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

Reply via email to