… | |
… | |
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 | |
… | |
… | |
1626 | void |
1624 | void |
1627 | rxvt_term::get_window_origin (int &x, int &y) |
1625 | rxvt_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 | |
1634 | Pixmap |
1631 | Pixmap |
1635 | rxvt_term::get_pixmap_property (int prop_id) |
1632 | rxvt_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 |
|
|
1657 | void |
|
|
1658 | rxvt_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 | |
1665 | void |
1653 | void |
1666 | rxvt_term::update_background () |
1654 | rxvt_term::update_background () |
1667 | { |
1655 | { |
1668 | if (update_background_ev.is_active ()) |
1656 | if (update_background_ev.is_active ()) |