elm_win: Stop hiding the mouse cusor on window out under wayland
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 1 Sep 2017 18:28:36 +0000 (13:28 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 1 Sep 2017 18:32:50 +0000 (13:32 -0500)
We needed to do this to prevent burning cpu with animated cursors
before we did frame callback based animating.

Now the compositor will stop our frame callbacks when our cursor
is implicitly visible when the pointer isn't over our window,
so we don't have to use window hides for it.

src/lib/elementary/efl_ui_win.c

index b06bdaa..c64ce3a 100644 (file)
@@ -997,11 +997,7 @@ _elm_win_mouse_out(Ecore_Evas *ee)
 
 #ifdef HAVE_ELEMENTARY_WL2
    if ((sd->wl.win) && (sd->pointer.ee))
-     {
-        sd->pointer.visible = EINA_FALSE;
-        sd->pointer.surf = NULL;
-        ecore_evas_hide(sd->pointer.ee);
-     }
+     sd->pointer.visible = EINA_FALSE;
 #endif
 }