diff src/shape_rect.c @ 224:29e1b2bffe4c

X backend only sent EVT_MOUSE_MOVE_RAW to MadButterfly. - backend does not interpret mouse events (over/out/move), now. - redraw manager, now, interpret mouse events to make it backend independent. - The task (interpret mouse events) should be moved to somewhere in futhure. - backend only sent MotionNotify as EVT_MOUSE_MOVE_RAW. - EVT_MOUSE_MOVE_RAW is interpreted by backend independent code.
author Thinker K.F. Li <thinker@branda.to>
date Mon, 15 Dec 2008 10:13:03 +0800
parents c234ee745ceb
children cd6af7da32c9
line wrap: on
line diff
--- a/src/shape_rect.c	Sun Dec 14 12:53:45 2008 +0800
+++ b/src/shape_rect.c	Mon Dec 15 10:13:03 2008 +0800
@@ -27,7 +27,7 @@
 
     memset(rect, 0, sizeof(sh_rect_t));
 
-    MBO_TYPE(rect) = MBO_RECT;
+    mb_obj_init(rect, MBO_RECT);
     rect->x = x;
     rect->y = y;
     rect->w = w;