Mercurial > MadButterfly
diff include/mb_X_supp.h @ 870:512204bcafba
Export the function to create a runtime for an existed window for X.
For some application, we need to create and associate a runtime with
an existed window, and free it the runtime without close the window,
later.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 24 Sep 2010 11:19:53 +0800 |
parents | 586e50f82c1f |
children | 3fe8054457a8 |
line wrap: on
line diff
--- a/include/mb_X_supp.h Fri Sep 24 03:22:19 2010 +0800 +++ b/include/mb_X_supp.h Fri Sep 24 11:19:53 2010 +0800 @@ -27,7 +27,9 @@ extern void X_MB_handle_connection(void *rt); extern void *X_MB_new(const char *display_name, int w, int h); +extern void *X_MB_new_with_win(Display *display, Window win); extern void X_MB_free(void *xmb_rt); +extern void X_MB_free_keep_win(void *rt); extern subject_t *X_MB_kbevents(void *xmb_rt); extern redraw_man_t *X_MB_rdman(void *xmb_rt);