ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvttoolkit.C
(Generate patch)

Comparing rxvt-unicode/src/rxvttoolkit.C (file contents):
Revision 1.6 by root, Sat Dec 11 17:18:29 2004 UTC vs.
Revision 1.10 by root, Wed Dec 29 19:59:46 2004 UTC

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
278void rxvt_display::flush () 278void rxvt_display::flush ()
279{ 279{
280 for (;;) 280 if (XEventsQueued (display, QueuedAlready))
281 { 281 x_cb (x_ev, EVENT_READ);
282 if (!XPending (display))
283 break;
284 282
285 x_cb (x_ev, 0); 283 XFlush (display);
286 }
287} 284}
288 285
289void rxvt_display::reg (xevent_watcher *w) 286void rxvt_display::reg (xevent_watcher *w)
290{ 287{
291 xw.push_back (w); 288 xw.push_back (w);
338 return xim; 335 return xim;
339} 336}
340 337
341void rxvt_display::put_xim (rxvt_xim *xim) 338void rxvt_display::put_xim (rxvt_xim *xim)
342{ 339{
340#if XLIB_IS_RACEFREE
343 xims.put (xim); 341 xims.put (xim);
342#endif
344} 343}
345#endif 344#endif
346 345
347Atom rxvt_display::atom (const char *name) 346Atom rxvt_display::atom (const char *name)
348{ 347{
386} 385}
387 386
388bool 387bool
389rxvt_color::set (rxvt_display *display, const char *name) 388rxvt_color::set (rxvt_display *display, const char *name)
390{ 389{
390#if XFT
391 return XftColorAllocName (display->display, display->visual, display->cmap,
392 name, &c);
393#else
391 XColor xc; 394 XColor xc;
392 395
393 if (XParseColor (display->display, display->cmap, name, &xc)) 396 if (XParseColor (display->display, display->cmap, name, &xc))
394 return set (display, xc.red, xc.green, xc.blue); 397 return set (display, xc.red, xc.green, xc.blue);
395 398
396 return false; 399 return false;
400#endif
397} 401}
398 402
399bool 403bool
400rxvt_color::set (rxvt_display *display, unsigned short cr, unsigned short cg, unsigned short cb) 404rxvt_color::set (rxvt_display *display, unsigned short cr, unsigned short cg, unsigned short cb)
401{ 405{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines