devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ce473d88a127e624fe22046865b3aff161c66f77

commit ce473d88a127e624fe22046865b3aff161c66f77
Author: Chris Michael <[email protected]>
Date:   Wed Dec 10 10:16:24 2014 -0500

    ecore-drm: Add internal function to set the output size in the input
    device structure
    
    Summary: This is used to update all input devices as to the new output
    size so that input device events can get their coordinates transformed
    into output coords
    
    @fix
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/ecore_drm/ecore_drm_inputs.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/src/lib/ecore_drm/ecore_drm_inputs.c 
b/src/lib/ecore_drm/ecore_drm_inputs.c
index 31176a3..05a744a 100644
--- a/src/lib/ecore_drm/ecore_drm_inputs.c
+++ b/src/lib/ecore_drm/ecore_drm_inputs.c
@@ -194,6 +194,23 @@ const struct libinput_interface _input_interface =
    _cb_close_restricted,
 };
 
+void 
+_ecore_drm_inputs_update_output(Ecore_Drm_Device *dev, int w, int h)
+{
+   Ecore_Drm_Seat *seat;
+   Ecore_Drm_Evdev *edev;
+   Eina_List *l, *ll;
+
+   EINA_LIST_FOREACH(dev->seats, l, seat)
+     {
+        EINA_LIST_FOREACH(seat->devices, ll, edev)
+          {
+             edev->output.w = w;
+             edev->output.h = h;
+          }
+     }
+}
+
 /* public functions */
 EAPI Eina_Bool 
 ecore_drm_inputs_create(Ecore_Drm_Device *dev)

-- 


Reply via email to