aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-01-30 12:37:44 -0500
committerChris Michael <cp.michael@samsung.com>2017-01-30 12:37:44 -0500
commitd485a116d34ac03adee360f4cddea5f99a969e12 (patch)
treedff6883c07ade93aa9ec4ec77d35af0f0866e050 /src/lib/elementary/efl_ui_win.c
parentelementary: No need to reset pointer surface on resize (diff)
downloadefl-d485a116d34ac03adee360f4cddea5f99a969e12.tar.gz
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 https://phab.enlightenment.org/T4987 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index f4a7076c25..1d06584e9a 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -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
}