discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=501efaf35709a4496723c674b8f7fb33eb7849cb

commit 501efaf35709a4496723c674b8f7fb33eb7849cb
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Feb 3 15:13:48 2017 -0500

    add flag for comp screen iface to indicate relative motion eventing
---
 src/bin/e_comp.h                | 1 +
 src/bin/e_comp_x_randr.c        | 3 ++-
 src/modules/wl_drm/e_mod_main.c | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_comp.h b/src/bin/e_comp.h
index 05de579..cf1b0f0 100644
--- a/src/bin/e_comp.h
+++ b/src/bin/e_comp.h
@@ -74,6 +74,7 @@ typedef struct E_Comp_Screen_Iface
    Eina_Bool (*key_down)(Ecore_Event_Key *ev);
    /* is key event eaten */
    Eina_Bool (*key_up)(Ecore_Event_Key *ev);
+   Eina_Bool relative_motion : 1;
 } E_Comp_Screen_Iface;
 
 /* struct to hold canvas objects so that abi doesn't break
diff --git a/src/bin/e_comp_x_randr.c b/src/bin/e_comp_x_randr.c
index 20ab4e5..a37d562 100644
--- a/src/bin/e_comp_x_randr.c
+++ b/src/bin/e_comp_x_randr.c
@@ -21,7 +21,8 @@ E_Comp_Screen_Iface xiface =
    .init = e_comp_x_randr_init,
    .shutdown = e_comp_x_randr_shutdown,
    .create = e_comp_x_randr_create,
-   .apply = e_comp_x_randr_config_apply
+   .apply = e_comp_x_randr_config_apply,
+   .relative_motion = EINA_FALSE,
 };
 
 static void
diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c
index 656f6e2..09d8d23 100644
--- a/src/modules/wl_drm/e_mod_main.c
+++ b/src/modules/wl_drm/e_mod_main.c
@@ -820,6 +820,7 @@ static E_Comp_Screen_Iface drmiface =
    .dpms = _drm2_dpms,
    .key_down = _drm2_key_down,
    .key_up = _drm2_key_up,
+   .relative_motion = EINA_TRUE,
 };
 
 static Eina_Bool

-- 


Reply via email to