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 57698405a165ec80314ee139569434ec2ad27a20
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Wed Jul 3 12:18:17 2024 +0100
fix formatting from last patch
---
src/modules/conf_randr/e_int_config_randr2.c | 45 +++++++++++++++-------------
1 file changed, 24 insertions(+), 21 deletions(-)
diff --git a/src/modules/conf_randr/e_int_config_randr2.c b/src/modules/conf_randr/e_int_config_randr2.c
index 06c2082d4..b73a721ed 100644
--- a/src/modules/conf_randr/e_int_config_randr2.c
+++ b/src/modules/conf_randr/e_int_config_randr2.c
@@ -788,19 +788,21 @@ _cb_enabled_changed(void *data, Evas_Object *obj, void *event EINA_UNUSED)
// for every rel_to that points to the disabled screen, set its rel_mode to point to "none"
if (!cs->enabled)
- {
- Eina_List *l;
- E_Config_Randr2_Screen *other_cs;
- EINA_LIST_FOREACH(cfdata->screens, l, other_cs)
- {
- if (!other_cs) continue;
- if (other_cs->rel_to && strcmp(other_cs->rel_to, cs->id) == 0)
- {
- other_cs->rel_mode = E_RANDR2_RELATIVE_NONE;
- e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE);
- }
- }
- }
+ {
+ Eina_List *l;
+ E_Config_Randr2_Screen *other_cs;
+
+ EINA_LIST_FOREACH(cfdata->screens, l, other_cs)
+ {
+ if (!other_cs) continue;
+ if ((other_cs->rel_to) &&
+ (!strcmp(other_cs->rel_to, cs->id)))
+ {
+ other_cs->rel_mode = E_RANDR2_RELATIVE_NONE;
+ e_config_dialog_changed_set(cfdata->cfd, EINA_TRUE);
+ }
+ }
+ }
}
static void
@@ -1309,14 +1311,15 @@ _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;
- 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 (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.