This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch devs/thanatermesis/e_randr2-fixes
in repository enlightenment.

View the commit online.

commit 3f70c813335a449e95e9ae4668a2da8ae9609a5c
Author: Samuel F. Baggen <thanaterme...@gmail.com>
AuthorDate: Tue Jul 2 02:31:08 2024 -0500

    only save settings when the screen is enabled
---
 src/modules/conf_randr/e_int_config_randr2.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/modules/conf_randr/e_int_config_randr2.c b/src/modules/conf_randr/e_int_config_randr2.c
index 41e137cc6..d0d7c977e 100644
--- a/src/modules/conf_randr/e_int_config_randr2.c
+++ b/src/modules/conf_randr/e_int_config_randr2.c
@@ -1307,12 +1307,14 @@ _basic_apply(E_Config_Dialog *cfd EINA_UNUSED, E_Config_Dialog_Data *cfdata)
         printf("APPLY %s .... rel to %s\n", cs->id, cs2->rel_to);
         if (cs2->rel_to) cs->rel_to = eina_stringshare_add(cs2->rel_to);
         cs->rel_align = cs2->rel_align;
-        cs->mode_w = cs2->mode_w;
-        cs->mode_h = cs2->mode_h;
-        cs->mode_refresh = cs2->mode_refresh;
-        cs->rotation = cs2->rotation;
-        cs->priority = cs2->priority;
-        cs->rel_mode = cs2->rel_mode;
+        if (cs2->enabled) {
+            cs->mode_w = cs2->mode_w;
+            cs->mode_h = cs2->mode_h;
+            cs->mode_refresh = cs2->mode_refresh;
+            cs->rotation = cs2->rotation;
+            cs->priority = cs2->priority;
+            cs->rel_mode = cs2->rel_mode;
+        }
         if (cs->custom_label_screen) eina_stringshare_del(cs->custom_label_screen);
         cs->custom_label_screen = NULL;
         if (cs2->custom_label_screen) cs->custom_label_screen = eina_stringshare_add(cs2->custom_label_screen);

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

Reply via email to