rotation: check the size swap config value while handling rotating 55/291655/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Thu, 20 Apr 2023 01:54:35 +0000 (10:54 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Thu, 20 Apr 2023 01:54:35 +0000 (10:54 +0900)
We add code to check the wm_win_rotation_swap_size config value while
handling rotate.
We swap the size only if this config is enabled.

Change-Id: I86f8897fb712372f6d55c20e571ccf35d013c32e

src/rotation/e_mod_rotation_wl.c

index d9b5eb4..9092599 100644 (file)
@@ -963,6 +963,9 @@ _e_client_rotation_swap_check(E_Client *ec)
    // Check whether the width and height of ec are swapped or not.
    // If you want to make your swap policy, then you can modify this function.
 
+   if (!e_config->wm_win_rotation_swap_size)
+     return EINA_FALSE;
+
    int x, y, w, h;
 
    if (e_policy_client_is_keyboard(ec) ||