forked from enlightenment/efl
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:
parent
6bfbeff47e
commit
e4d47ed3a5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue