# HG changeset patch # User Thinker K.F. Li # Date 1236185682 -28800 # Node ID 1ca96c15812580a0baaa9528c0e160c94f25e7b1 # Parent 6c350fc92ae38b42bfd28f0e3d84262c5627c7f7 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. diff -r 6c350fc92ae3 -r 1ca96c158125 src/mouse.c --- 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);