summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-12-10 10:16:24 -0500
committerChris Michael <cp.michael@samsung.com>2014-12-10 12:01:58 -0500
commitce473d88a127e624fe22046865b3aff161c66f77 (patch)
tree957adc48b225863a9eb6b15deebeba589d851303 /src/lib
parent64e005503be61e3936ff6684d4a43342e8eb9eca (diff)
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 <cp.michael@samsung.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore_drm/ecore_drm_inputs.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_inputs.c b/src/lib/ecore_drm/ecore_drm_inputs.c
index 31176a3f71..05a744ad26 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 =
194 _cb_close_restricted, 194 _cb_close_restricted,
195}; 195};
196 196
197void
198_ecore_drm_inputs_update_output(Ecore_Drm_Device *dev, int w, int h)
199{
200 Ecore_Drm_Seat *seat;
201 Ecore_Drm_Evdev *edev;
202 Eina_List *l, *ll;
203
204 EINA_LIST_FOREACH(dev->seats, l, seat)
205 {
206 EINA_LIST_FOREACH(seat->devices, ll, edev)
207 {
208 edev->output.w = w;
209 edev->output.h = h;
210 }
211 }
212}
213
197/* public functions */ 214/* public functions */
198EAPI Eina_Bool 215EAPI Eina_Bool
199ecore_drm_inputs_create(Ecore_Drm_Device *dev) 216ecore_drm_inputs_create(Ecore_Drm_Device *dev)