add mouse button to E_Event_Zone_Edge

SVN revision: 73401
This commit is contained in:
Mike Blumenkrantz 2012-07-06 08:26:23 +00:00
parent d5dbc78399
commit 3d09bfa6db
2 changed files with 3 additions and 0 deletions

View 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);

View 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);