# HG changeset patch # User Thinker K.F. Li # Date 1290357750 -28800 # Node ID 714169f33f13bf2461d11cee07a92fd549a2dc4f # Parent d6035efd64dc0a244b4be0b0638253bbc7367bdf Fix X_init_connection() to match modification of mb_backend_t diff -r d6035efd64dc -r 714169f33f13 src/X_supp.c --- a/src/X_supp.c Mon Nov 22 00:42:30 2010 +0800 +++ b/src/X_supp.c Mon Nov 22 00:42:30 2010 +0800 @@ -167,6 +167,8 @@ /* @} */ +static void handle_x_event(X_MB_runtime_t *rt); + /*! \defgroup x_mb_io IO manager for X. * @{ */ @@ -667,6 +669,7 @@ XFlush(display); } +#if 0 /*! \brief Handle connection coming data and timeout of timers. * * \param display is a Display returned by XOpenDisplay(). @@ -741,6 +744,7 @@ } } } +#endif /* 0 */ static int X_init_connection(const char *display_name, int w, int h, @@ -949,12 +953,13 @@ // to the redraw_man_t instead. xmb_rt->rdman->rt = xmb_rt; - xmb_rt->tman = mb_tman_new(); + xmb_rt->io_man = _io_factory->new(); + xmb_rt->timer_man = _timer_factory->new(); img_ldr = simple_mb_img_ldr_new(""); xmb_rt->img_ldr = img_ldr; - rdman_set_img_ldr(xmb_rt->rdman, img_ldr); - memset(xmb_rt->monitors,0,sizeof(xmb_rt->monitors)); + /*! \todo Remove rdman_set_img_ldr() */ + rdman_set_img_ldr(xmb_rt->rdman, img_ldr); /* this is ncessary? */ #ifndef ONLY_MOUSE_MOVE_RAW xmb_rt->last = NULL;