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 ed64f9e0b8cb9d9c33f79d0be873e40b20a965ce
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Sat Feb 24 20:43:03 2024 +0000

    desklock - fix kbd layout set for desklock so it works
    
    e just didn't store the kbd layout - set it up if it is not on desklock
    based on layout name stored.
    
    @fix
---
 src/bin/e_desklock.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/src/bin/e_desklock.c b/src/bin/e_desklock.c
index be68f8290..a80854559 100644
--- a/src/bin/e_desklock.c
+++ b/src/bin/e_desklock.c
@@ -278,6 +278,28 @@ _desklock_show_internal(Eina_Bool suspend)
    if (e_config->desklock_language)
      e_intl_language_set(e_config->desklock_language);
 
+   if ((e_config->xkb.lock_layout) && (e_config->xkb.desklock_layout))
+     {
+        if ((!e_config->xkb.lock_layout->name) ||
+            (!!strcmp(e_config->xkb.lock_layout->name, e_config->xkb.desklock_layout)))
+          {
+             e_config_xkb_layout_free(e_config->xkb.lock_layout);
+             e_config->xkb.lock_layout = NULL;
+          }
+     }
+   if ((e_config->xkb.desklock_layout) && (!e_config->xkb.lock_layout))
+     {
+        E_Config_XKB_Layout *cl;
+
+        EINA_LIST_FOREACH(e_config->xkb.used_layouts, l, cl)
+          {
+            if ((cl->name) && (!strcmp(cl->name, e_config->xkb.desklock_layout)))
+              {
+                 e_config->xkb.lock_layout = e_config_xkb_layout_dup(cl);
+                 break;
+              }
+          }
+     }
    if (e_config->xkb.lock_layout)
      e_xkb_layout_set(e_config->xkb.lock_layout);
 

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

Reply via email to