changeset 1005:714169f33f13 refine_backend_if

Fix X_init_connection() to match modification of mb_backend_t
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 22 Nov 2010 00:42:30 +0800
parents d6035efd64dc
children 3ee2e30b260f
files src/X_supp.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;