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.312 by root, Sat Mar 4 22:05:05 2006 UTC vs.
Revision 1.315 by root, Tue Aug 22 13:07:17 2006 UTC

1775 } 1775 }
1776#endif 1776#endif
1777 } 1777 }
1778} 1778}
1779 1779
1780#if TRANSPARENT 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
1791}
1792
1793#if TRANSPARENT || ENABLE_PERL
1781void 1794void
1782rxvt_term::rootwin_cb (XEvent &ev) 1795rxvt_term::rootwin_cb (XEvent &ev)
1783{ 1796{
1784 make_current (); 1797 make_current ();
1785 1798
1799 if (SHOULD_INVOKE (HOOK_ROOT_EVENT)
1800 && HOOK_INVOKE ((this, HOOK_ROOT_EVENT, DT_XEVENT, &ev, DT_END)))
1801 return;
1802
1803# if TRANSPARENT
1786 switch (ev.type) 1804 switch (ev.type)
1787 { 1805 {
1788 case PropertyNotify: 1806 case PropertyNotify:
1789 /* 1807 /*
1790 * if user used some Esetroot compatible prog to set the root bg, 1808 * if user used some Esetroot compatible prog to set the root bg,
1798 case ReparentNotify: 1816 case ReparentNotify:
1799 if (OPTION (Opt_transparent) && check_our_parents () && am_transparent) 1817 if (OPTION (Opt_transparent) && check_our_parents () && am_transparent)
1800 want_refresh = want_full_refresh = 1; 1818 want_refresh = want_full_refresh = 1;
1801 break; 1819 break;
1802 } 1820 }
1821# endif
1803} 1822}
1804#endif 1823#endif
1805 1824
1806void 1825void
1807rxvt_term::button_press (XButtonEvent &ev) 1826rxvt_term::button_press (XButtonEvent &ev)
3655 seen_esc = true; 3674 seen_esc = true;
3656 continue; 3675 continue;
3657 } 3676 }
3658 else if (ch == C0_BEL || ch == CHAR_ST) 3677 else if (ch == C0_BEL || ch == CHAR_ST)
3659 break; 3678 break;
3679 else if (ch == C0_SYN)
3680 ch = cmd_get8 ();
3660 else if (ch < 0x20) 3681 else if (ch < 0x20)
3661 return NULL; /* other control character - exit */ 3682 return NULL; /* other control character - exit */
3662 3683
3663 seen_esc = false; 3684 seen_esc = false;
3664 3685
3665 if (n >= STRING_MAX - 1) 3686 if (n >= STRING_MAX - 1)
3666 // stop at some sane length 3687 // stop at some sane length
3667 return NULL; 3688 return NULL;
3668 3689
3669 if (ch == C0_SYN)
3670 string[n++] = cmd_get8 ();
3671 else
3672 string[n++] = ch; 3690 string[n++] = ch;
3673 } 3691 }
3674 3692
3675 string[n++] = '\0'; 3693 string[n++] = '\0';
3676 3694
3677 ends_how = (ch == 0x5c ? C0_ESC : ch); 3695 ends_how = (ch == 0x5c ? C0_ESC : ch);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines