From aa815809275bcda7b22ca80dd0cb9e195fe79f71 Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Sun, 15 Oct 2023 13:27:19 +0900 Subject: [PATCH] e_xdg_shell: fix bug for setting size of fullscreen state Change-Id: I72783b4947a9a579d552e1edad6025178244924b --- src/bin/e_xdg_shell_v6.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/bin/e_xdg_shell_v6.c b/src/bin/e_xdg_shell_v6.c index 0a7431c..69442b2 100644 --- a/src/bin/e_xdg_shell_v6.c +++ b/src/bin/e_xdg_shell_v6.c @@ -211,7 +211,16 @@ _e_xdg_toplevel_v6_size_send(E_Xdg_Toplevel_V6 *toplevel, int32_t width, int32_t configure_height = height; } - if ((ec->maximized) || (ec->fullscreen)) + if (ec->fullscreen) + { + e_client_base_output_resolution_useful_geometry_get(ec, NULL, NULL, &mw, &mh); + LOG("FORCELY STAY current fullscreen size (%d %d) of E_Client, requested size " + "is (%d %d), the state (maximize %d, fullscreen %d)", + ec, mw, mh, width, height, ec->maximized, ec->fullscreen); + configure_width = mw; + configure_height = mh; + } + else if (ec->maximized) { e_client_maximized_geometry_get(ec, NULL, NULL, &mw, &mh); LOG("FORCELY STAY current maximized size (%d %d) of E_Client, requested size " -- 2.7.4