… | |
… | |
615 | |
615 | |
616 | void |
616 | void |
617 | rxvt_init () |
617 | rxvt_init () |
618 | { |
618 | { |
619 | ptytty::init (); |
619 | ptytty::init (); |
|
|
620 | |
620 | ev::ev_default_loop (0); |
621 | if (!ev::ev_default_loop (0)) |
|
|
622 | rxvt_fatal ("cannot initialise libev (bad value for LIBEV_METHODS?)\n"); |
621 | |
623 | |
622 | rxvt_environ = environ; |
624 | rxvt_environ = environ; |
623 | |
625 | |
624 | signal (SIGHUP, SIG_IGN); |
626 | signal (SIGHUP, SIG_IGN); |
625 | signal (SIGPIPE, SIG_IGN); |
627 | signal (SIGPIPE, SIG_IGN); |
… | |
… | |
1001 | /*TODO: handle Color_BD, scrollbar background, etc. */ |
1003 | /*TODO: handle Color_BD, scrollbar background, etc. */ |
1002 | |
1004 | |
1003 | update_fade_color (idx); |
1005 | update_fade_color (idx); |
1004 | recolour_cursor (); |
1006 | recolour_cursor (); |
1005 | scr_recolour (); |
1007 | scr_recolour (); |
1006 | #endif /* XTERM_COLOR_CHANGE */ |
1008 | #endif /* XTERM_COLOR_CHANGE */ |
1007 | } |
1009 | } |
1008 | |
1010 | |
1009 | void |
1011 | void |
1010 | rxvt_term::recolour_cursor () |
1012 | rxvt_term::recolour_cursor () |
1011 | { |
1013 | { |
… | |
… | |
1704 | XFree (status_attr); |
1706 | XFree (status_attr); |
1705 | } |
1707 | } |
1706 | |
1708 | |
1707 | XFree (preedit_attr); |
1709 | XFree (preedit_attr); |
1708 | } |
1710 | } |
1709 | #endif /* USE_XIM */ |
1711 | #endif /* USE_XIM */ |
1710 | |
1712 | |
1711 | void |
1713 | void |
1712 | rxvt_term::get_window_origin (int &x, int &y) |
1714 | rxvt_term::get_window_origin (int &x, int &y) |
1713 | { |
1715 | { |
1714 | Window cr; |
1716 | Window cr; |
… | |
… | |
1736 | } |
1738 | } |
1737 | return None; |
1739 | return None; |
1738 | } |
1740 | } |
1739 | |
1741 | |
1740 | #ifdef HAVE_BG_PIXMAP |
1742 | #ifdef HAVE_BG_PIXMAP |
|
|
1743 | # if TRACE_PIXMAPS |
|
|
1744 | # undef update_background |
|
|
1745 | int rxvt_term::trace_update_background (const char* file, int line) |
|
|
1746 | { |
|
|
1747 | fprintf (stderr, "%s:%d:update_background()\n", file, line); |
|
|
1748 | update_background (); |
|
|
1749 | } |
|
|
1750 | # endif |
1741 | int |
1751 | int |
1742 | rxvt_term::update_background () |
1752 | rxvt_term::update_background () |
1743 | { |
1753 | { |
1744 | bgPixmap.invalidate (); |
1754 | bgPixmap.invalidate (); |
1745 | |
1755 | |