devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=5b77c566e614410d9c5e34ebff65a02b4b54dddd

commit 5b77c566e614410d9c5e34ebff65a02b4b54dddd
Author: Chris Michael <[email protected]>
Date:   Wed Mar 19 08:16:54 2014 +0000

    Use ecore_wl functions to return the pointer location if we are
    running as wayland-only
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/e_pointer.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/bin/e_pointer.c b/src/bin/e_pointer.c
index fd12f15..829e56d 100644
--- a/src/bin/e_pointer.c
+++ b/src/bin/e_pointer.c
@@ -451,7 +451,10 @@ _e_pointer_cb_idle_timer_pre(void *data)
    if (!(p = data)) return ECORE_CALLBACK_RENEW;
 #ifndef HAVE_WAYLAND_ONLY
    ecore_x_pointer_xy_get(p->win, &x, &y);
+#else
+   ecore_wl_pointer_xy_get(&x, &y);
 #endif
+
    p->x = x;
    p->y = y;
    if (p->canvas)
@@ -502,7 +505,10 @@ _e_pointer_cb_idle_poller(void *data)
    /* check if pointer actually moved since the 1 second post-mouse move idle
     * pre-timer that fetches the position */
    ecore_x_pointer_xy_get(p->win, &x, &y);
+#else
+   ecore_wl_pointer_xy_get(&x, &y);
 #endif
+
    if ((x != p->x) || (y != p->y))
      {
         /* it moved - so we are not idle yet - record position and wait
@@ -592,6 +598,9 @@ e_pointer_canvas_new(Evas *e, int filled)
    evas_object_image_alpha_set(p->pointer_image, 1);
    evas_object_show(p->pointer_image);
 
+   /* FIXME: If we are running wayland only, we should have a function call 
+    * here to tell evas to place this object a hardware plane */
+
    if (filled) e_pointer_type_push(p, p, "default");
    if (!p->evas) _e_pointer_canvas_add(p);
    _e_pointers = eina_list_append(_e_pointers, p);

-- 


Reply via email to