forked from enlightenment/enlightenment
Remove unecessary event free, default is to free the event struct.
SVN revision: 32828
This commit is contained in:
parent
840a97ae0b
commit
8034a61fb4
|
@ -17,7 +17,6 @@ static int _e_zone_cb_mouse_out(void *data, int type, void *event);
|
|||
static int _e_zone_cb_timer(void *data);
|
||||
static int _e_zone_cb_desk_show(void *data, int type, void *event);
|
||||
static void _e_zone_update_flip(E_Zone *zone);
|
||||
static void _e_zone_event_move_resize_free(void *data, void *event);
|
||||
|
||||
EAPI int E_EVENT_ZONE_DESK_COUNT_SET = 0;
|
||||
EAPI int E_EVENT_POINTER_WARP = 0;
|
||||
|
@ -170,7 +169,7 @@ e_zone_move(E_Zone *zone, int x, int y)
|
|||
|
||||
ev = E_NEW(E_Event_Zone_Move_Resize, 1);
|
||||
ev->zone = zone;
|
||||
ecore_event_add(E_EVENT_ZONE_MOVE_RESIZE, ev, _e_zone_event_move_resize_free, NULL);
|
||||
ecore_event_add(E_EVENT_ZONE_MOVE_RESIZE, ev, NULL, NULL);
|
||||
|
||||
ecore_x_window_move_resize(zone->edge.left, zone->x, zone->y, 1, zone->h);
|
||||
ecore_x_window_move_resize(zone->edge.right, zone->x + zone->w - 1, zone->y, 1, zone->h);
|
||||
|
@ -195,7 +194,7 @@ e_zone_resize(E_Zone *zone, int w, int h)
|
|||
|
||||
ev = E_NEW(E_Event_Zone_Move_Resize, 1);
|
||||
ev->zone = zone;
|
||||
ecore_event_add(E_EVENT_ZONE_MOVE_RESIZE, ev, _e_zone_event_move_resize_free, NULL);
|
||||
ecore_event_add(E_EVENT_ZONE_MOVE_RESIZE, ev, NULL, NULL);
|
||||
|
||||
ecore_x_window_move_resize(zone->edge.left, zone->x, zone->y, 1, zone->h);
|
||||
ecore_x_window_move_resize(zone->edge.right, zone->x + zone->w - 1, zone->y, 1, zone->h);
|
||||
|
@ -228,7 +227,7 @@ e_zone_move_resize(E_Zone *zone, int x, int y, int w, int h)
|
|||
|
||||
ev = E_NEW(E_Event_Zone_Move_Resize, 1);
|
||||
ev->zone = zone;
|
||||
ecore_event_add(E_EVENT_ZONE_MOVE_RESIZE, ev, _e_zone_event_move_resize_free, NULL);
|
||||
ecore_event_add(E_EVENT_ZONE_MOVE_RESIZE, ev, NULL, NULL);
|
||||
|
||||
ecore_x_window_move_resize(zone->edge.left, zone->x, zone->y, 1, zone->h);
|
||||
ecore_x_window_move_resize(zone->edge.right, zone->x + zone->w - 1, zone->y, 1, zone->h);
|
||||
|
@ -1008,9 +1007,3 @@ _e_zone_update_flip(E_Zone *zone)
|
|||
zone->flip.bottom = 1;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_e_zone_event_move_resize_free(void *data, void *event)
|
||||
{
|
||||
E_FREE(event);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue