comparison src/coord.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 6c350fc92ae3
comparison
equal deleted inserted replaced
223:8be36a0d4239 224:29e1b2bffe4c
88 if(parent) { 88 if(parent) {
89 /* insert at tail of children list. */ 89 /* insert at tail of children list. */
90 co->parent = parent; 90 co->parent = parent;
91 STAILQ_INS_TAIL(parent->children, coord_t, sibling, co); 91 STAILQ_INS_TAIL(parent->children, coord_t, sibling, co);
92 } 92 }
93 MBO_TYPE(co) = MBO_COORD; 93 mb_obj_init(co, MBO_COORD);
94 co->matrix[0] = 1; 94 co->matrix[0] = 1;
95 co->matrix[4] = 1; 95 co->matrix[4] = 1;
96 co->aggr_matrix[0] = 1; 96 co->aggr_matrix[0] = 1;
97 co->aggr_matrix[4] = 1; 97 co->aggr_matrix[4] = 1;
98 co->cur_area = &co->areas[0]; 98 co->cur_area = &co->areas[0];