From 15a217849277f0837d03b69edad22c60836fd36c Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 23 Feb 2015 13:57:44 -0500 Subject: [PATCH] ecore-drm: Add output id to output event Summary: When we raise an event for an output, also include the output id in the event structure. This will allow us to better identify which output the event occured on. @fix Signed-off-by: Chris Michael --- src/lib/ecore_drm/Ecore_Drm.h | 1 + src/lib/ecore_drm/ecore_drm_output.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h index 9ce2722a10..ed76983ea1 100644 --- a/src/lib/ecore_drm/Ecore_Drm.h +++ b/src/lib/ecore_drm/Ecore_Drm.h @@ -118,6 +118,7 @@ struct _Ecore_Drm_Event_Activate struct _Ecore_Drm_Event_Output { + unsigned int id; int x, y; int w, h; int phys_width, phys_height; diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c index c264877fe0..a2d7f104fb 100644 --- a/src/lib/ecore_drm/ecore_drm_output.c +++ b/src/lib/ecore_drm/ecore_drm_output.c @@ -603,6 +603,7 @@ _ecore_drm_event_output_send(const Ecore_Drm_Output *output, Eina_Bool plug) e->plug = plug; if (plug) { + e->id = output->crtc_id; e->w = output->current_mode->width; e->h = output->current_mode->height; e->x = output->x;