e_config: add a new configuration - wm_win_rotation_swap_size 15/291515/1 accepted/tizen/unified/20230419.044957
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 18 Apr 2023 02:12:08 +0000 (11:12 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 18 Apr 2023 02:37:08 +0000 (11:37 +0900)
If this config is enabled, then window size can be swapped when it is rotated.
But it's up to e-module which is in charge of rotation functionality.

Change-Id: Ida40692d119cc0b42788c0b7ee5a153f029590c4

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

index 2e586b3..74e849a 100644 (file)
@@ -256,6 +256,7 @@ _e_config_edd_init(Eina_Bool old)
    E_CONFIG_VAL(D, T, use_desktop_window_profile, INT);
 #ifdef _F_ZONE_WINDOW_ROTATION_
    E_CONFIG_VAL(D, T, wm_win_rotation, UCHAR);
+   E_CONFIG_VAL(D, T, wm_win_rotation_swap_size, UCHAR);
 #endif
    E_CONFIG_VAL(D, T, screen_rotation_pre, UINT);
    E_CONFIG_VAL(D, T, screen_rotation_setting, UINT);
index fd28d0c..87aa4e3 100644 (file)
@@ -148,6 +148,7 @@ struct _E_Config
    int           use_desktop_window_profile;
 #ifdef _F_ZONE_WINDOW_ROTATION_
    unsigned char wm_win_rotation;
+   Eina_Bool     wm_win_rotation_swap_size;
 #endif
    unsigned int screen_rotation_pre; // screen-rotation value as default (0/90/180/270)
    unsigned int screen_rotation_setting; // screen-rotation value which is set in runtime (0/90/180/270)