summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-11-13 15:09:03 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-11-13 15:11:22 -0500
commit69a8de59b05626591ddc0b960e2e4ccf45f26f2d (patch)
treec5df0d7cd22452578a190b01ffa1795fe65b4542
parent6e7db171ad31f52a7ddb148e1e3eecc5730ea6a3 (diff)
ecore-evas wayland: use correct values when updating wayland window size
by using the geometry from after the request size has been updated, scenarios such as the following can be avoided: [4208305.332] xdg_surface@46.set_window_geometry(0, 0, 1778, 1) [4208305.370] xdg_surface@46.set_window_geometry(0, 0, 1778, 250) @fix
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 634343b158..ef0e7e17a7 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -603,9 +603,6 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
603 } 603 }
604 } 604 }
605 605
606 if (wdata->win)
607 ecore_wl_window_update_size(wdata->win, ee->req.w, ee->req.h);
608
609 evas_output_size_get(ee->evas, &ow, &oh); 606 evas_output_size_get(ee->evas, &ow, &oh);
610 if ((ow != w) || (oh != h)) 607 if ((ow != w) || (oh != h))
611 { 608 {
@@ -639,6 +636,8 @@ _ecore_evas_wl_common_resize(Ecore_Evas *ee, int w, int h)
639 636
640 if (ee->func.fn_resize) ee->func.fn_resize(ee); 637 if (ee->func.fn_resize) ee->func.fn_resize(ee);
641 } 638 }
639 if (wdata->win)
640 ecore_wl_window_update_size(wdata->win, ee->req.w, ee->req.h);
642} 641}
643 642
644void 643void