This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch up/7-output
in repository enlightenment.
View the commit online.
commit cc875e6327c8cb9c1ae28e2911b4941bbbc07a07
Author: Cedric BAIL <[email protected]>
AuthorDate: Sun Nov 22 16:15:59 2026 -0600
wl_test - let a test reconfigure an output
zone_add can create a second output, but nothing can change one
afterwards, so what a client that already bound wl_output is told when
a monitor changes could not be tested. The request goes through
e_comp_wl_output_init(), the function a randr change ends up in.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
src/modules/wl_test/e_mod_main.c | 13 ++++++++++++-
src/protocol/wl-test.xml | 14 +++++++++++++-
2 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/src/modules/wl_test/e_mod_main.c b/src/modules/wl_test/e_mod_main.c
index f95703c5c..ce59aa40c 100644
--- a/src/modules/wl_test/e_mod_main.c
+++ b/src/modules/wl_test/e_mod_main.c
@@ -313,6 +313,16 @@ _wl_test_cb_zone_add(struct wl_client *client EINA_UNUSED, struct wl_resource *r
ERR("wl_test: could not create wl_output for zone %d", num);
}
+static void
+_wl_test_cb_output_configure(struct wl_client *client EINA_UNUSED, struct wl_resource *resource EINA_UNUSED, uint32_t zone, int32_t x, int32_t y, int32_t w, int32_t h)
+{
+ char id[32];
+
+ snprintf(id, sizeof(id), "e-test-%u", zone);
+ if (!e_comp_wl_output_init(id, NULL, NULL, x, y, w, h, 0, 0, 0, 0, 0, zone))
+ ERR("wl_test: could not configure wl_output of zone %u", zone);
+}
+
/* Input is posted as ecore events, the way a backend delivers it, rather than
* fed to evas directly. Wayland clients are reached through evas callbacks
* on their frame, but a good part of E listens on the ecore side of the same
@@ -589,6 +599,7 @@ static const struct wl_test_interface _wl_test_implementation =
_wl_test_cb_get_clients,
_wl_test_cb_client_action,
_wl_test_cb_client_action_end,
+ _wl_test_cb_output_configure,
};
static void
@@ -622,7 +633,7 @@ e_modapi_init(E_Module *m)
return NULL;
}
- _wl_test_global = wl_global_create(e_comp_wl->wl.disp, &wl_test_interface, 4,
+ _wl_test_global = wl_global_create(e_comp_wl->wl.disp, &wl_test_interface, 5,
NULL, _wl_test_cb_bind);
if (!_wl_test_global)
{
diff --git a/src/protocol/wl-test.xml b/src/protocol/wl-test.xml
index 28a766712..12ee94530 100644
--- a/src/protocol/wl-test.xml
+++ b/src/protocol/wl-test.xml
@@ -23,7 +23,7 @@
DEALINGS IN THE SOFTWARE.
</copyright>
- <interface name="wl_test" version="4">
+ <interface name="wl_test" version="5">
<description summary="private interface for the compositor test suite">
A back door into the compositor for its own test suite. It exposes
internal state and synthesises input, so it is only built with
@@ -294,5 +294,17 @@
<arg name="name" type="string"/>
<arg name="params" type="string"/>
</request>
+
+ <request name="output_configure" since="5">
+ <description summary="reconfigure the output of a zone made by zone_add">
+ Reaches E the way a monitor change does, so that a test can see what
+ a client that already bound the output is told about it.
+ </description>
+ <arg name="zone" type="uint" summary="index of a zone from zone_add"/>
+ <arg name="x" type="int"/>
+ <arg name="y" type="int"/>
+ <arg name="w" type="int"/>
+ <arg name="h" type="int"/>
+ </request>
</interface>
</protocol>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.