e_client: modified code for e_client_unmaximize 57/283157/2
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 19 Oct 2022 06:28:31 +0000 (15:28 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 19 Oct 2022 07:11:28 +0000 (07:11 +0000)
We changed code to use e_client_util_move_resize_without_frame() instead of
e_policy_visibility_client_defer_move().

An e_client_util_move_resize_without_frame() has a functionality for synchronizing
move and resize.

Change-Id: Idb7d9eee65f0f13fa579b835c8383f1e08e8b99e

src/bin/e_client.c

index 1b2a5a6d94360a30e82a588a6d0e6405861c54f6..1e696e541a2196f80fb59bbda1f699614173623b 100644 (file)
@@ -6240,25 +6240,14 @@ e_client_unmaximize(E_Client *ec, E_Maximize max)
                   _e_client_frame_update(ec);
                   evas_object_smart_callback_call(ec->frame, "unmaximize", NULL);
                   e_client_resize_limit(ec, &w, &h);
-                  if (ec->layout.splited)
-                    e_client_util_move_resize_without_frame(ec, x, y, w, h);
-                  else
-                    {
-                       e_policy_visibility_client_defer_move(ec);
-                    }
+                  e_client_util_move_resize_without_frame(ec, x, y, w, h);
                   e_hints_window_size_unset(ec);
                }
              else
                {
                   evas_object_smart_callback_call(ec->frame, "unmaximize", NULL);
                   e_client_resize_limit(ec, &w, &h);
-                  if (ec->layout.splited)
-                    e_client_util_move_resize_without_frame(ec, x, y, w, h);
-                  else
-                     {
-                        e_policy_visibility_client_defer_move(ec);
-                     }
-
+                  e_client_util_move_resize_without_frame(ec, x, y, w, h);
                   e_hints_window_size_set(ec);
                }
              if (vert)