elm_win: Added opaque region set for window show/resize/move 63/38763/2 accepted/tizen/common/20150429.093810 accepted/tizen/mobile/20150429.124702 accepted/tizen/tv/20150429.123927 accepted/tizen/wearable/20150429.124157 submit/tizen/20150428.160542
authorMinJeong Kim <minjjj.kim@samsung.com>
Tue, 28 Apr 2015 07:38:49 +0000 (16:38 +0900)
committerMinJeong Kim <minjjj.kim@samsung.com>
Tue, 28 Apr 2015 10:30:00 +0000 (19:30 +0900)
Change-Id: If3a8877efea13507de7fbd117006f3b0387a0a42

src/lib/elm_win.c

index 218c11d..aca2708 100644 (file)
@@ -768,10 +768,10 @@ static void
 _elm_win_resize_job(void *data)
 {
    ELM_WIN_DATA_GET(data, sd);
-   int w, h;
+   int x, y, w, h;
 
    sd->deferred_resize_job = NULL;
-   ecore_evas_request_geometry_get(sd->ee, NULL, NULL, &w, &h);
+   ecore_evas_request_geometry_get(sd->ee, &x, &y, &w, &h);
    if (sd->constrain)
      {
         int sw, sh;
@@ -791,6 +791,10 @@ _elm_win_resize_job(void *data)
 
    evas_object_resize(sd->obj, w, h);
    evas_object_resize(sd->edje, w, h);
+
+#ifdef HAVE_ELEMENTARY_WAYLAND
+   ecore_wl_window_opaque_region_set(sd->wl.win, x, y, w, h);
+#endif
 }
 
 static void
@@ -1795,6 +1799,12 @@ _elm_win_obj_intercept_show(void *data,
         ecore_evas_show(sd->pointer.ee);
         evas_object_show(sd->pointer.obj);
      }
+#ifdef HAVE_ELEMENTARY_WAYLAND
+   int x, y, w, h;
+
+   evas_object_geometry_get(obj, &x, &y, &w, &h);
+   ecore_wl_window_opaque_region_set(sd->wl.win, x, y, w, h);
+#endif
    evas_object_show(obj);
 #ifdef ELEMENTARY_X
    if (sd->type == ELM_WIN_TOOLTIP)