ecore-drm: Add output id to output event
authorChris Michael <cp.michael@samsung.com>
Mon, 23 Feb 2015 18:57:44 +0000 (13:57 -0500)
committerBoram Park <boram1288.park@samsung.com>
Fri, 17 Apr 2015 05:47:17 +0000 (14:47 +0900)
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>
src/lib/ecore_drm/Ecore_Drm.h
src/lib/ecore_drm/ecore_drm_output.c

index 2cf79e2..da9aa5d 100644 (file)
@@ -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;
index da84e75..93ca9da 100644 (file)
@@ -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;