void rxvt_display::flush ()
{
- XFlush (dpy);
+ flush_ev.start ();
}
void rxvt_display::flush_cb (ev::prepare &w, int revents)
{
- flush ();
+ w.stop ();
+ XFlush (dpy);
}
void rxvt_display::reg (xevent_watcher *w)
{
rvideo_bell = true;
scr_rvideo_mode (rvideo_mode);
- display->flush ();
+ flush ();
bell_ev.start (VISUAL_BELL_DURATION);
}
bool invert = rend & RS_RVid;
#ifndef NO_BOLD_UNDERLINE_REVERSE
- if (rend & RS_Bold
- && fore == Color_fg)
+ if (rend & RS_Bold && fore == Color_fg)
{
if (ISSET_PIXCOLOR (Color_BD))
fore = Color_BD;
# endif
}
- if (rend & RS_Italic
- && fore == Color_fg)
+ if (rend & RS_Italic && fore == Color_fg)
{
if (ISSET_PIXCOLOR (Color_IT))
fore = Color_IT;
#ifdef HAVE_BG_PIXMAP
bgPixmap.apply ();
#else
+
XSetWindowBackground (dpy, parent[0], pix_colors[Color_border]);
XClearWindow (dpy, parent[0]);
XSetWindowBackground (dpy, vt, pix_colors[Color_bg]);
+
# if HAVE_SCROLLBARS
if (scrollBar.win)
{
scrollbar_show (0);
}
# endif
+
scr_clear ();
scr_touch (true);
want_refresh = 1;
-#endif
+#endif
}
/* ------------------------------------------------------------------------- */