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 84ef18de92f94c638b7fcd978d9137f42304cfec
Author: Cedric BAIL <[email protected]>
AuthorDate: Fri Nov 27 22:05:28 2026 -0600

    evas/wayland_shm: give the surface its size when the outbuf is set up
    
    _evas_outbuf_setup() records the output size but never passes it to
    the Ecore_Wl2_Surface, which therefore stays 0x0. Later reconfigures
    return early when the size did not change, so a window that is never
    resized after creation only ever asked for 0x0 buffers: allocation
    failed, nothing was attached and the window never showed up.
    
    Reconfigure the surface to the outbuf size, honouring rotation, as
    soon as it is created.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_01DGDCULiZLyb9VfMVzJ293M
---
 src/modules/evas/engines/wayland_shm/evas_outbuf.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
index 64d36d453a..387278fa4d 100644
--- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
@@ -29,6 +29,16 @@ _evas_outbuf_setup(int w, int h, Evas_Engine_Info_Wayland *info)
                                           ob->priv.destination_alpha);
    if (!ob->surface) goto surf_err;
 
+   /* The surface starts out 0x0 and _evas_outbuf_reconfigure() bails out
+    * early when the size does not change, so a window that is never resized
+    * after creation would only ever ask for 0x0 buffers. */
+   if ((ob->rotation == 90) || (ob->rotation == 270))
+     ecore_wl2_surface_reconfigure(ob->surface, h, w, 0,
+                                   ob->priv.destination_alpha);
+   else
+     ecore_wl2_surface_reconfigure(ob->surface, w, h, 0,
+                                   ob->priv.destination_alpha);
+
    eina_array_step_set(&ob->priv.onebuf_regions, sizeof(Eina_Array), 8);
 
    return ob;

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

Reply via email to