e_config: Add configuration to adjust visibility.ignore_geometry to all windows 23/284723/1
authorJunseok Kim <juns.kim@samsung.com>
Thu, 27 Oct 2022 06:09:00 +0000 (15:09 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 24 Nov 2022 07:53:07 +0000 (16:53 +0900)
For adjust visibility.ignore_geometry to whole windows, added the configuration that calc_vis_ignore_geometry.
When the calc_vis_ignore_geometry is True, all of the new E_Client set the visibility.ignore_geometry to True.

It is not fix each client's visibility.ignore_geometry value to configured value.
each client can change their value at any time.

Change-Id: I7804183a7bb340d7b725eb5b198ba00994123bc1

src/bin/e_client.c
src/bin/e_config.c
src/bin/e_config.h

index 6b0dff1..203b339 100644 (file)
@@ -4734,6 +4734,8 @@ e_client_new(E_Pixmap *cp, int first_map, int internal)
    ec->manage_resize.header_h = 0;
    ec->manage_resize.footer_h = 0;
 
+   ec->visibility.ignore_geometry = e_config->calc_vis_ignore_geometry;
+
    return ec;
 }
 
index f58e8b8..b972dd9 100644 (file)
@@ -331,6 +331,7 @@ _e_config_edd_init(Eina_Bool old)
    E_CONFIG_VAL(D, T, resize_object.border_width.t, INT);
    E_CONFIG_VAL(D, T, resize_object.border_width.b, INT);
    E_CONFIG_VAL(D, T, resize_object.image_path, STR);
+   E_CONFIG_VAL(D, T, calc_vis_ignore_geometry, UINT);
 }
 
 static Eina_Bool
@@ -589,6 +590,7 @@ e_config_load(void)
    E_CONFIG_LIMIT(e_config->resize_object.border_width.r, 0, 128);
    E_CONFIG_LIMIT(e_config->resize_object.border_width.t, 0, 128);
    E_CONFIG_LIMIT(e_config->resize_object.border_width.b, 0, 128);
+   E_CONFIG_LIMIT(e_config->calc_vis_ignore_geometry, 0, 1);
 }
 
 E_API int
index 9e9a2ce..8bce2c0 100644 (file)
@@ -305,6 +305,8 @@ struct _E_Config
          int l, r, t, b;
       } border_width; // border of an image object
    } resize_object;
+
+   Eina_Bool calc_vis_ignore_geometry; // 0: unset ignore geometry, 1: ignore geometry calculate when the calculation of visibility.
 };
 
 struct _E_Config_Desklock_Background