e_comp_wl: modify code sending configure event in ec->frame resize callback 53/287253/1 accepted/tizen/7.0/unified/20230126.170230
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 25 Jan 2023 07:46:54 +0000 (16:46 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 25 Jan 2023 23:27:06 +0000 (08:27 +0900)
We changed code not to send configure event if the buffer size is same to the ec's size in ec->frame's
resize callback.

Change-Id: I8a4ca2e51c4226d33e983ae8c99143953e060606

src/bin/e_comp_wl.c

index eed2815612aa2ef6847386c148b2bc14bf4b2ba1..0e4375543d60abc1164bc5d51344904e9165d3ca 100644 (file)
@@ -1978,7 +1978,15 @@ _e_comp_wl_evas_cb_resize(void *data, Evas_Object *obj EINA_UNUSED, void *event
      }
    else if ((!ec->fullscreen) && (!ec->maximized) &&
             (!ec->comp_data->maximize_pre))
-     _e_comp_wl_configure_send(ec, 1, 1);
+     {
+        int pw = 0;
+        int ph = 0;
+        e_pixmap_size_get(ec->pixmap, &pw, &ph);
+        if ((pw != ec->w) || (ph != ec->h))
+          {
+             _e_comp_wl_configure_send(ec, 1, 1);
+          }
+     }
 
    if (ec->comp_data->sub.below_obj)
      e_comp_wl_subsurface_bg_rectangle_map_apply(ec);