summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-02-23 13:57:44 -0500
committerBoram Park <boram1288.park@samsung.com>2015-04-17 14:47:17 +0900
commit0479617ca2120f345cf8ebc3e03218f5a800fda1 (patch)
tree1be0e545307b6524964129b5eec067011a7584ea
parent8092cf57fa51d850e7a7678fade80ecc14a07942 (diff)
downloadefl-0479617ca2120f345cf8ebc3e03218f5a800fda1.tar.gz
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 <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_drm/Ecore_Drm.h1
-rw-r--r--src/lib/ecore_drm/ecore_drm_output.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/Ecore_Drm.h b/src/lib/ecore_drm/Ecore_Drm.h
index 2cf79e251d..da9aa5db1e 100644
--- a/src/lib/ecore_drm/Ecore_Drm.h
+++ b/src/lib/ecore_drm/Ecore_Drm.h
@@ -136,6 +136,7 @@ struct _Ecore_Drm_Event_Vblank
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 da84e75eb0..93ca9da3fe 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -604,6 +604,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;