summaryrefslogtreecommitdiff
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
parent7c65f5ad20f1be896225106e18e658d25d24ee28 (diff)
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>
-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)
952#ifdef HAVE_ELEMENTARY_WL2 952#ifdef HAVE_ELEMENTARY_WL2
953 if ((sd->wl.win) && (sd->pointer.ee)) 953 if ((sd->wl.win) && (sd->pointer.ee))
954 { 954 {
955 _elm_theme_object_set(sd->obj, sd->pointer.obj,
956 "pointer", "base", "default");
957
955 sd->pointer.visible = EINA_TRUE; 958 sd->pointer.visible = EINA_TRUE;
956 ecore_evas_show(sd->pointer.ee); 959 ecore_evas_show(sd->pointer.ee);
957 sd->pointer.surf = ecore_wl2_window_surface_get(sd->pointer.win); 960 sd->pointer.surf = ecore_wl2_window_surface_get(sd->pointer.win);
@@ -969,10 +972,7 @@ _elm_win_mouse_out(Ecore_Evas *ee)
969 972
970#ifdef HAVE_ELEMENTARY_WL2 973#ifdef HAVE_ELEMENTARY_WL2
971 if ((sd->wl.win) && (sd->pointer.ee)) 974 if ((sd->wl.win) && (sd->pointer.ee))
972 { 975 sd->pointer.visible = EINA_FALSE;
973 sd->pointer.visible = EINA_FALSE;
974 ecore_evas_hide(sd->pointer.ee);
975 }
976#endif 976#endif
977} 977}
978 978