… | |
… | |
104 | |
104 | |
105 | ///////////////////////////////////////////////////////////////////////////// |
105 | ///////////////////////////////////////////////////////////////////////////// |
106 | |
106 | |
107 | #ifdef USE_XIM |
107 | #ifdef USE_XIM |
108 | static void |
108 | static void |
|
|
109 | #if XIMCB_PROTO_BROKEN |
|
|
110 | im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3) |
|
|
111 | #else |
109 | im_destroy_cb (XIM unused1, XPointer client_data, XPointer unused3) |
112 | im_destroy_cb (XIM unused1, XPointer client_data, XPointer unused3) |
|
|
113 | #endif |
110 | { |
114 | { |
111 | rxvt_xim *xim = (rxvt_xim *)client_data; |
115 | rxvt_xim *xim = (rxvt_xim *)client_data; |
112 | rxvt_display *display = xim->display; |
116 | rxvt_display *display = xim->display; |
113 | |
117 | |
114 | display->xims.erase (find (display->xims.begin (), display->xims.end (), xim)); |
118 | display->xims.erase (find (display->xims.begin (), display->xims.end (), xim)); |
… | |
… | |
243 | |
247 | |
244 | void rxvt_display::flush () |
248 | void rxvt_display::flush () |
245 | { |
249 | { |
246 | for (;;) |
250 | for (;;) |
247 | { |
251 | { |
248 | XFlush (display); |
|
|
249 | |
|
|
250 | if (!XPending (display)) |
252 | if (!XPending (display)) |
251 | break; |
253 | break; |
252 | |
254 | |
253 | x_cb (x_ev, 0); |
255 | x_cb (x_ev, 0); |
254 | } |
256 | } |