static void _opaque_set(Ecore_Wl2_Window *window);
//
+// TIZEN_ONLY(20201123)
+static void _opaque_region_set(Ecore_Wl2_Window *window, struct wl_region *region);
+//
+
/* internal functions */
void
_ecore_wl2_window_init(void)
//
}
else if (window->surface)
- wl_surface_set_opaque_region(window->surface, NULL);
+ _opaque_region_set(window, NULL);
//
}
ecore_wl2_window_opaque_region_set(window, 0, 0, 0, 0);
*/
else if (window->surface)
- wl_surface_set_opaque_region(window->surface, NULL);
+ _opaque_region_set(window, NULL);
//
}
window->opaque.w, window->opaque.h);
if (!region) return;
}
+ // TIZEN_ONLY(20201123)
+ /*
wl_surface_set_opaque_region(window->surface, region);
+ */
+ _opaque_region_set(window, region);
+ //
}
if (!window->pending.input) goto out;
if (region) wl_region_destroy(region);
}
+// TIZEN_ONLY(20201123)
+static void
+_opaque_region_set(Ecore_Wl2_Window *window, struct wl_region *region)
+{
+ if (!window) return;
+ if (!window->surface) return;
+
+ wl_surface_set_opaque_region(window->surface, region);
+
+ window->pending.opaque = EINA_FALSE;
+}
+//
+
// TIZEN_ONLY(20190910)
static void
_opaque_set(Ecore_Wl2_Window *window)
if (!window->opaque_set)
{
if (window->surface)
- wl_surface_set_opaque_region(window->surface, NULL);
+ _opaque_region_set(window, NULL);
return;
}
wl_region_add(region, window->opaque.x, window->opaque.y,
window->opaque.w, window->opaque.h);
- wl_surface_set_opaque_region(window->surface, region);
+ _opaque_region_set(window, region);
wl_region_destroy(region);
}
//