This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch up/10-fcitx5
in repository enlightenment.
View the commit online.
commit 36d71b2d70d1dcd8eb9477f3484bfd33eca3a6b0
Author: Cedric BAIL <[email protected]>
AuthorDate: Tue Nov 24 19:37:27 2026 -0600
wl_test - let a test press a key with modifiers held
The key request takes no modifiers, so a test cannot press a key
binding such as Super+Escape. key_modified holds them around the key,
through the same ecore key events real input produces, so the binding
code runs on them.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
src/modules/wl_test/e_mod_main.c | 10 +++++++++-
src/protocol/wl-test.xml | 20 +++++++++++++++++++-
2 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/src/modules/wl_test/e_mod_main.c b/src/modules/wl_test/e_mod_main.c
index fdf195ed9..982d3be42 100644
--- a/src/modules/wl_test/e_mod_main.c
+++ b/src/modules/wl_test/e_mod_main.c
@@ -333,6 +333,13 @@ _wl_test_cb_screensaver_configure(struct wl_client *client EINA_UNUSED, struct w
e_comp_wl_notidle();
}
+/* The modifier enum has the values of ECORE_EVENT_MODIFIER_*. */
+static void
+_wl_test_cb_key_modified(struct wl_client *client EINA_UNUSED, struct wl_resource *resource EINA_UNUSED, const char *keyname, uint32_t modifiers, uint32_t pressed)
+{
+ e_comp_wl_input_keyboard_event_generate(keyname, modifiers, !pressed);
+}
+
static void
_wl_test_cb_get_screensaver(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
{
@@ -618,6 +625,7 @@ static const struct wl_test_interface _wl_test_implementation =
_wl_test_cb_output_configure,
_wl_test_cb_screensaver_configure,
_wl_test_cb_get_screensaver,
+ _wl_test_cb_key_modified,
};
static void
@@ -651,7 +659,7 @@ e_modapi_init(E_Module *m)
return NULL;
}
- _wl_test_global = wl_global_create(e_comp_wl->wl.disp, &wl_test_interface, 7,
+ _wl_test_global = wl_global_create(e_comp_wl->wl.disp, &wl_test_interface, 8,
NULL, _wl_test_cb_bind);
if (!_wl_test_global)
{
diff --git a/src/protocol/wl-test.xml b/src/protocol/wl-test.xml
index ca456e6a0..50e0659e2 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="7">
+ <interface name="wl_test" version="8">
<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
@@ -328,5 +328,23 @@
<event name="screensaver" since="7">
<arg name="on" type="uint"/>
</event>
+
+ <request name="key_modified" since="8">
+ <description summary="press or release a key with modifiers held">
+ Like key, with the modifiers held, so that a test can reach E's
+ key bindings. The modifiers are pressed before the key and
+ released after it.
+ </description>
+ <arg name="keyname" type="string"/>
+ <arg name="modifiers" type="uint" enum="modifier"/>
+ <arg name="pressed" type="uint"/>
+ </request>
+
+ <enum name="modifier" bitfield="true" since="8">
+ <entry name="shift" value="0x1"/>
+ <entry name="ctrl" value="0x2"/>
+ <entry name="alt" value="0x4"/>
+ <entry name="win" value="0x8"/>
+ </enum>
</interface>
</protocol>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.