cnp: Avoid CRI message about wayland in X

Test scenario:
  elementary_test -to "Window Inline"
  Click on an entry, select some text (maybe with the keyboard)

There was a CRI message inside _ecore_evas_interface_get because
ecore_evas_wayland2_window_get() was called on an X11 ecore_evas
(not wayland).

The function was supposed to return NULL here.
This commit is contained in:
Jean-Philippe Andre 2017-06-15 16:34:22 +09:00
parent 6bfbeff47e
commit e4d47ed3a5
1 changed files with 2 additions and 2 deletions

View File

@ -4042,9 +4042,9 @@ _wl_elm_widget_window_get(const Evas_Object *obj)
{
ee = ecore_evas_buffer_ecore_evas_parent_get(ee);
if (!ee) return NULL;
win = ecore_evas_wayland2_window_get(ee);
engine_name = ecore_evas_engine_name_get(ee);
}
else if (!strncmp(engine_name, "wayland", sizeof("wayland") - 1))
if (!strncmp(engine_name, "wayland", sizeof("wayland") - 1))
{
/* In case the engine is not a buffer, we want to check once. */
win = ecore_evas_wayland2_window_get(ee);