discomfitor pushed a commit to branch enlightenment-0.22.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=5e07f6815c989f44da85cc9bbc8a5d3272844a38

commit 5e07f6815c989f44da85cc9bbc8a5d3272844a38
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sun Apr 1 14:29:38 2018 +0900

    edge flip while dragging with alt - fix to work again
    
    this fixes when you drag a wqindow to screen edge and it flips if you
    use alt+drag as opposed to just dragging titlebar around without alt.
    it fixes it by updating your config to allow "any modifier" for edge
    flips which is actually correct.
    
    @fix
---
 src/bin/e_config.c | 20 ++++++++++++++++++++
 src/bin/e_config.h |  2 +-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_config.c b/src/bin/e_config.c
index 5b7d9ddb0..1feb31bbc 100644
--- a/src/bin/e_config.c
+++ b/src/bin/e_config.c
@@ -1505,6 +1505,26 @@ e_config_load(void)
                if (!elm_config_profile_exists(_e_config_profile))
                  elm_config_profile_save(_e_config_profile);
             }
+          CONFIG_VERSION_CHECK(25)
+            {
+               Eina_List *l;
+               E_Config_Binding_Edge *ebe;
+
+               EINA_LIST_FOREACH(e_bindings->edge_bindings, l, ebe)
+                 {
+                    if ((ebe->context == E_BINDING_CONTEXT_ZONE) &&
+                        (ebe->modifiers == 0) &&
+                        (ebe->edge >= 1) && (ebe->edge <= 4) &&
+                        (!ebe->any_mod) &&
+                        (ebe->action) &&
+                        (!strcmp(ebe->action, "desk_flip_in_direction")))
+                      {
+                         ebe->any_mod = 1;
+                      }
+                 }
+               CONFIG_VERSION_UPDATE_INFO(25);
+               e_config_save_queue();
+            }
      }
    elm_config_profile_set(_e_config_profile);
    if (!e_config->remember_internal_fm_windows)
diff --git a/src/bin/e_config.h b/src/bin/e_config.h
index 3ed61b004..a4af30c5c 100644
--- a/src/bin/e_config.h
+++ b/src/bin/e_config.h
@@ -46,7 +46,7 @@ typedef enum
 /* increment this whenever a new set of config values are added but the users
  * config doesn't need to be wiped - simply new values need to be put in
  */
-#define E_CONFIG_FILE_GENERATION 24
+#define E_CONFIG_FILE_GENERATION 25
 #define E_CONFIG_FILE_VERSION    ((E_CONFIG_FILE_EPOCH * 1000000) + 
E_CONFIG_FILE_GENERATION)
 
 #define E_CONFIG_BINDINGS_VERSION 0 // DO NOT INCREMENT UNLESS YOU WANT TO 
WIPE ALL BINDINGS!!!!!

-- 


Reply via email to