e_policy_wl: Add missing call to e_client_base_output_resolution_update() 98/300998/1
authorSeunghun Lee <shiin.lee@samsung.com>
Tue, 7 Nov 2023 01:45:30 +0000 (10:45 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 7 Nov 2023 02:29:46 +0000 (11:29 +0900)
The function `e_client_base_output_resolution_update()` was omitted when
the commit cf3f5d2 was applied by mistake. Because of this, base output
resolution feature couldn't work to windows.

This patch also moves this call from `shell` implementations to
`e_policy_wl` in this process.

Change-Id: I7abbb772040bfa598e982684889f49aff703a08c

src/bin/e_comp_wl_shell.c
src/bin/e_policy_wl.c

index 19fbb9f..c2ea5c9 100644 (file)
@@ -907,9 +907,6 @@ _e_shell_cb_shell_surface_get(struct wl_client *client, struct wl_resource *reso
 
    ELOGF("SHELL", "Create shell surface", ec);
 
-   // base_output_resolution.
-   e_client_base_output_resolution_update(ec);
-
    e_shell_e_client_shsurface_assign(ec, shsurf_resource, &api);
    e_comp_wl_shell_surface_ready(ec);
 }
@@ -1555,9 +1552,6 @@ _e_xdg_shell_cb_surface_get(struct wl_client *client, struct wl_resource *resour
                                   ec,
                                   _e_shell_surface_cb_destroy);
 
-   // base_output_resolution.
-   e_client_base_output_resolution_update(ec);
-
    e_shell_e_client_shsurface_assign(ec, shsurf_resource, &api);
    e_shell_e_client_toplevel_set(ec);
 
index 09b437c..19349c6 100644 (file)
@@ -8364,6 +8364,8 @@ _e_policy_wl_cb_hook_shell_surface_ready(void *d, E_Client *ec)
    if (EINA_UNLIKELY(!ec))
      return;
 
+   e_client_base_output_resolution_update(ec);
+
    e_policy_client_maximize(ec);
 
    e_client_base_output_resolution_transform_adjust(ec);