elementary: Don't hide pointer window on mouse out

This patch fixes an issue where pointers would occasionally disappear
when running EFL apps in a Wayland compositor. This was occuring
because we would hide the pointer window on mouse_out (and thus attach a NULL
buffer to the pointer surface), but then when we mouse_in again on the
window, it still have a NULL buffer attached to that pointer surface.
This patch fixes the issue.

ref T4987

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-01-30 12:37:44 -05:00
parent 7c65f5ad20
commit d485a116d3
1 changed files with 4 additions and 4 deletions

View File

@ -952,6 +952,9 @@ _elm_win_mouse_in(Ecore_Evas *ee)
#ifdef HAVE_ELEMENTARY_WL2
if ((sd->wl.win) && (sd->pointer.ee))
{
_elm_theme_object_set(sd->obj, sd->pointer.obj,
"pointer", "base", "default");
sd->pointer.visible = EINA_TRUE;
ecore_evas_show(sd->pointer.ee);
sd->pointer.surf = ecore_wl2_window_surface_get(sd->pointer.win);
@ -969,10 +972,7 @@ _elm_win_mouse_out(Ecore_Evas *ee)
#ifdef HAVE_ELEMENTARY_WL2
if ((sd->wl.win) && (sd->pointer.ee))
{
sd->pointer.visible = EINA_FALSE;
ecore_evas_hide(sd->pointer.ee);
}
sd->pointer.visible = EINA_FALSE;
#endif
}