summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-02-23 13:57:44 -0500
committerChris Michael <cp.michael@samsung.com>2015-02-23 13:58:42 -0500
commit15a217849277f0837d03b69edad22c60836fd36c (patch)
tree402c12ee7937210aab1b9d461a2c39e304f6a9c8 /src/lib/ecore_drm
parentd9c9ea1f2aafe5ad106ba1be702fcc083f2710b0 (diff)
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>
Diffstat (limited to 'src/lib/ecore_drm')
-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 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
118 118
119struct _Ecore_Drm_Event_Output 119struct _Ecore_Drm_Event_Output
120{ 120{
121 unsigned int id;
121 int x, y; 122 int x, y;
122 int w, h; 123 int w, h;
123 int phys_width, phys_height; 124 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)
603 e->plug = plug; 603 e->plug = plug;
604 if (plug) 604 if (plug)
605 { 605 {
606 e->id = output->crtc_id;
606 e->w = output->current_mode->width; 607 e->w = output->current_mode->width;
607 e->h = output->current_mode->height; 608 e->h = output->current_mode->height;
608 e->x = output->x; 609 e->x = output->x;