… | |
… | |
270 | } |
270 | } |
271 | #endif |
271 | #endif |
272 | } |
272 | } |
273 | while (XEventsQueued (display, QueuedAlready)); |
273 | while (XEventsQueued (display, QueuedAlready)); |
274 | |
274 | |
275 | flush (); |
275 | XFlush (display); |
276 | } |
276 | } |
277 | |
277 | |
278 | void rxvt_display::flush () |
278 | void rxvt_display::flush () |
279 | { |
279 | { |
|
|
280 | if (XEventsQueued (display, QueuedAlready)) |
|
|
281 | x_cb (x_ev, EVENT_READ); |
|
|
282 | |
280 | XFlush (display); |
283 | XFlush (display); |
281 | } |
284 | } |
282 | |
285 | |
283 | void rxvt_display::reg (xevent_watcher *w) |
286 | void rxvt_display::reg (xevent_watcher *w) |
284 | { |
287 | { |
… | |
… | |
332 | return xim; |
335 | return xim; |
333 | } |
336 | } |
334 | |
337 | |
335 | void rxvt_display::put_xim (rxvt_xim *xim) |
338 | void rxvt_display::put_xim (rxvt_xim *xim) |
336 | { |
339 | { |
|
|
340 | #if XLIB_IS_RACEFREE |
337 | xims.put (xim); |
341 | xims.put (xim); |
|
|
342 | #endif |
338 | } |
343 | } |
339 | #endif |
344 | #endif |
340 | |
345 | |
341 | Atom rxvt_display::atom (const char *name) |
346 | Atom rxvt_display::atom (const char *name) |
342 | { |
347 | { |