Mercurial > MadButterfly
changeset 315:1ca96c158125
Fix bug that examples/drag can not drag star.
- It caused by mis-understanding purpose of event_t::tgt.
- It is target subject where a event be sent to directly.
- rdman can not retreived by casting event_t::tgt.
- It is passed as argument of addrm_monitor_hdlr.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 05 Mar 2009 00:54:42 +0800 |
parents | 6c350fc92ae3 |
children | 535731374dfb |
files | src/mouse.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mouse.c Thu Mar 05 00:54:42 2009 +0800 +++ b/src/mouse.c Thu Mar 05 00:54:42 2009 +0800 @@ -63,7 +63,7 @@ int cnt = 0; mevt = (monitor_event_t *)evt; - rdman = (redraw_man_t *)evt->tgt; + rdman = (redraw_man_t *)arg; obj = (mb_obj_t *)subject_get_object(mevt->subject); props = mb_obj_prop_store(obj);