Mercurial > MadButterfly
comparison src/X_supp.c @ 1013:d5b8853767e7 refine_backend_if
Add flush function to mb_backend_t
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 22 Nov 2010 00:42:30 +0800 |
parents | 914add76c210 |
children | f7bf372a85a3 |
comparison
equal
deleted
inserted
replaced
1012:914add76c210 | 1013:d5b8853767e7 |
---|---|
1186 mb_IO_man_t *io_man = xmb_rt->io_man; | 1186 mb_IO_man_t *io_man = xmb_rt->io_man; |
1187 | 1187 |
1188 io_man->unreg(io_man, hdl); | 1188 io_man->unreg(io_man, hdl); |
1189 } | 1189 } |
1190 | 1190 |
1191 static int | |
1192 _x_mb_flush(mb_rt_t *rt) { | |
1193 X_MB_runtime_t *xmb_rt = (X_MB_runtime_t *) rt; | |
1194 int r; | |
1195 | |
1196 r = XFlush(xmb_rt->display); | |
1197 return r == 0? ERR: OK; | |
1198 } | |
1199 | |
1191 mb_backend_t backend = { X_MB_new, | 1200 mb_backend_t backend = { X_MB_new, |
1192 X_MB_new_with_win, | 1201 X_MB_new_with_win, |
1193 | 1202 |
1194 X_MB_free, | 1203 X_MB_free, |
1204 X_MB_free_keep_win, | |
1195 X_MB_add_event, | 1205 X_MB_add_event, |
1196 X_MB_remove_event, | 1206 X_MB_remove_event, |
1197 _x_mb_event_loop, | 1207 _x_mb_event_loop, |
1208 _x_mb_flush, | |
1198 | 1209 |
1199 X_MB_kbevents, | 1210 X_MB_kbevents, |
1200 X_MB_rdman, | 1211 X_MB_rdman, |
1201 X_MB_timer_man, | 1212 X_MB_timer_man, |
1202 X_MB_ob_factory, | 1213 X_MB_ob_factory, |