add mouse button to E_Event_Zone_Edge
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 6 Jul 2012 08:26:23 +0000 (08:26 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 6 Jul 2012 08:26:23 +0000 (08:26 +0000)
SVN revision: 73401

src/bin/e_zone.c
src/bin/e_zone.h

index c181438..26014c9 100644 (file)
@@ -1603,6 +1603,7 @@ _e_zone_cb_mouse_down(void    *data,
    zev->edge = edge;
    zev->x = ev->root.x;
    zev->y = ev->root.y;
+   zev->button = ev->buttons;
    zev->modifiers = ev->modifiers;
    ecore_event_add(E_EVENT_ZONE_EDGE_OUT, zev, NULL, NULL);
    e_bindings_edge_down_event_handle(E_BINDING_CONTEXT_ZONE, E_OBJECT(zone), zev);
@@ -1630,6 +1631,7 @@ _e_zone_cb_mouse_up(void    *data,
    zev->edge = edge;
    zev->x = ev->root.x;
    zev->y = ev->root.y;
+   zev->button = ev->buttons;
    zev->modifiers = ev->modifiers;
    ecore_event_add(E_EVENT_ZONE_EDGE_OUT, zev, NULL, NULL);
    e_bindings_edge_up_event_handle(E_BINDING_CONTEXT_ZONE, E_OBJECT(zone), zev);
index 3d07e7b..62e0437 100644 (file)
@@ -125,6 +125,7 @@ struct _E_Event_Zone_Edge
    E_Zone_Edge edge;
    int         x, y;
    int         modifiers;
+   int         button;
 };
 
 EINTERN int    e_zone_init(void);