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

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.333 by root, Fri Oct 22 05:57:59 2010 UTC vs.
Revision 1.335 by root, Sun Oct 24 17:52:50 2010 UTC

554 554
555 // get rid of stdin/stdout as we don't need them, to free resources 555 // get rid of stdin/stdout as we don't need them, to free resources
556 dup2 (STDERR_FILENO, STDIN_FILENO); 556 dup2 (STDERR_FILENO, STDIN_FILENO);
557 dup2 (STDERR_FILENO, STDOUT_FILENO); 557 dup2 (STDERR_FILENO, STDOUT_FILENO);
558 558
559 ptytty::init ();
560
561 if (!ev_default_loop ()) 559 if (!ev_default_loop ())
562 rxvt_fatal ("cannot initialise libev (bad value for LIBEV_METHODS?)\n"); 560 rxvt_fatal ("cannot initialise libev (bad value for LIBEV_METHODS?)\n");
563 561
564 rxvt_environ = environ; 562 rxvt_environ = environ;
565 563
1626void 1624void
1627rxvt_term::get_window_origin (int &x, int &y) 1625rxvt_term::get_window_origin (int &x, int &y)
1628{ 1626{
1629 Window cr; 1627 Window cr;
1630 XTranslateCoordinates (dpy, parent[0], display->root, 0, 0, &x, &y, &cr); 1628 XTranslateCoordinates (dpy, parent[0], display->root, 0, 0, &x, &y, &cr);
1631/* fprintf (stderr, "origin is %+d%+d\n", x, y);*/
1632} 1629}
1633 1630
1634Pixmap 1631Pixmap
1635rxvt_term::get_pixmap_property (int prop_id) 1632rxvt_term::get_pixmap_property (int prop_id)
1636{ 1633{
1650 1647
1651 return None; 1648 return None;
1652} 1649}
1653 1650
1654#ifdef HAVE_BG_PIXMAP 1651#ifdef HAVE_BG_PIXMAP
1655# if TRACE_PIXMAPS
1656# undef update_background
1657void
1658rxvt_term::trace_update_background (const char *file, int line)
1659{
1660 fprintf (stderr, "%s:%d:update_background()\n", file, line);
1661 update_background ();
1662}
1663# endif
1664 1652
1665void 1653void
1666rxvt_term::update_background () 1654rxvt_term::update_background ()
1667{ 1655{
1668 if (update_background_ev.is_active ()) 1656 if (update_background_ev.is_active ())

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines