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

Comparing rxvt-unicode/src/command.C (file contents):
Revision 1.306 by root, Mon Feb 6 05:40:15 2006 UTC vs.
Revision 1.313 by root, Wed Jul 5 22:46:14 2006 UTC

1/*--------------------------------*-C-*---------------------------------* 1/*----------------------------------------------------------------------*
2 * File: command.C 2 * File: command.C
3 *----------------------------------------------------------------------* 3 *----------------------------------------------------------------------*
4 * 4 *
5 * All portions of code are copyright by their respective author/s. 5 * All portions of code are copyright by their respective author/s.
6 * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> 6 * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk>
1714 if (!focus) 1714 if (!focus)
1715 { 1715 {
1716 focus = 1; 1716 focus = 1;
1717 want_refresh = 1; 1717 want_refresh = 1;
1718 1718
1719 HOOK_INVOKE ((this, HOOK_FOCUS_OUT, DT_END)); 1719 HOOK_INVOKE ((this, HOOK_FOCUS_IN, DT_END));
1720 1720
1721#if USE_XIM 1721#if USE_XIM
1722 if (Input_Context != NULL) 1722 if (Input_Context != NULL)
1723 { 1723 {
1724 IMSetStatusPosition (); 1724 IMSetPosition ();
1725 XSetICFocus (Input_Context); 1725 XSetICFocus (Input_Context);
1726 } 1726 }
1727#endif 1727#endif
1728#if CURSOR_BLINK 1728#if CURSOR_BLINK
1729 if (OPTION (Opt_cursorBlink)) 1729 if (OPTION (Opt_cursorBlink))
1773 pix_colors = pix_colors_unfocused; 1773 pix_colors = pix_colors_unfocused;
1774 scr_recolour (); 1774 scr_recolour ();
1775 } 1775 }
1776#endif 1776#endif
1777 } 1777 }
1778}
1779
1780void
1781rxvt_term::update_fade_color (unsigned int idx)
1782{
1783#if OFF_FOCUS_FADING
1784 if (rs[Rs_fade])
1785 {
1786 rgba c;
1787 pix_colors [Color_fade].get (c);
1788 pix_colors_focused [idx].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused [idx], c);
1789 }
1790#endif
1778} 1791}
1779 1792
1780#if TRANSPARENT 1793#if TRANSPARENT
1781void 1794void
1782rxvt_term::rootwin_cb (XEvent &ev) 1795rxvt_term::rootwin_cb (XEvent &ev)
2765 if (OPTION (Opt_jumpScroll) && refresh_limit < REFRESH_PERIOD) 2778 if (OPTION (Opt_jumpScroll) && refresh_limit < REFRESH_PERIOD)
2766 refresh_limit++; 2779 refresh_limit++;
2767 else 2780 else
2768 { 2781 {
2769 flag = true; 2782 flag = true;
2783 //TODO: due to popular request, implement "skipscroll" option here
2770 scr_refresh (); 2784 scr_refresh ();
2771 want_refresh = 1; 2785 want_refresh = 1;
2772 } 2786 }
2773 } 2787 }
2774 2788
3755 int saveop = op; 3769 int saveop = op;
3756 3770
3757 dLocal (Display *, dpy); 3771 dLocal (Display *, dpy);
3758 3772
3759 assert (str != NULL); 3773 assert (str != NULL);
3774
3775 if (HOOK_INVOKE ((this, HOOK_OSC_SEQ, DT_INT, op, DT_STR, str, DT_END)))
3776 return;
3777
3760 switch (op) 3778 switch (op)
3761 { 3779 {
3762 case XTerm_name: 3780 case XTerm_name:
3763 set_title (str); 3781 set_title (str);
3764 /* FALLTHROUGH */ 3782 /* FALLTHROUGH */
3981 break; 3999 break;
3982#endif 4000#endif
3983 4001
3984#if ENABLE_PERL 4002#if ENABLE_PERL
3985 case URxvt_perl: 4003 case URxvt_perl:
3986 if (HOOK_INVOKE ((this, HOOK_OSC_SEQ, DT_STR, str, DT_END))) 4004 if (HOOK_INVOKE ((this, HOOK_OSC_SEQ_PERL, DT_STR, str, DT_END)))
3987 ; // no responses yet 4005 ; // no responses yet
3988 break; 4006 break;
3989#endif 4007#endif
3990 } 4008 }
3991} 4009}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines