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.313 by root, Wed Jul 5 22:46:14 2006 UTC vs.
Revision 1.316 by root, Thu Dec 7 20:59:59 2006 UTC

1458 break; 1458 break;
1459 } 1459 }
1460 break; 1460 break;
1461 1461
1462 case FocusIn: 1462 case FocusIn:
1463 if (ev.xfocus.detail != NotifyInferior && ev.xfocus.detail != NotifyPointer)
1463 focus_in (); 1464 focus_in ();
1464 break; 1465 break;
1465 1466
1466 case FocusOut: 1467 case FocusOut:
1468 if (ev.xfocus.detail != NotifyInferior && ev.xfocus.detail != NotifyPointer)
1467 focus_out (); 1469 focus_out ();
1468 break; 1470 break;
1469 1471
1470 case ConfigureNotify: 1472 case ConfigureNotify:
1471 if (ev.xconfigure.window == parent[0]) 1473 if (ev.xconfigure.window == parent[0])
1472 { 1474 {
1788 pix_colors_focused [idx].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused [idx], c); 1790 pix_colors_focused [idx].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused [idx], c);
1789 } 1791 }
1790#endif 1792#endif
1791} 1793}
1792 1794
1793#if TRANSPARENT 1795#if TRANSPARENT || ENABLE_PERL
1794void 1796void
1795rxvt_term::rootwin_cb (XEvent &ev) 1797rxvt_term::rootwin_cb (XEvent &ev)
1796{ 1798{
1797 make_current (); 1799 make_current ();
1798 1800
1801 if (SHOULD_INVOKE (HOOK_ROOT_EVENT)
1802 && HOOK_INVOKE ((this, HOOK_ROOT_EVENT, DT_XEVENT, &ev, DT_END)))
1803 return;
1804
1805# if TRANSPARENT
1799 switch (ev.type) 1806 switch (ev.type)
1800 { 1807 {
1801 case PropertyNotify: 1808 case PropertyNotify:
1802 /* 1809 /*
1803 * if user used some Esetroot compatible prog to set the root bg, 1810 * if user used some Esetroot compatible prog to set the root bg,
1811 case ReparentNotify: 1818 case ReparentNotify:
1812 if (OPTION (Opt_transparent) && check_our_parents () && am_transparent) 1819 if (OPTION (Opt_transparent) && check_our_parents () && am_transparent)
1813 want_refresh = want_full_refresh = 1; 1820 want_refresh = want_full_refresh = 1;
1814 break; 1821 break;
1815 } 1822 }
1823# endif
1816} 1824}
1817#endif 1825#endif
1818 1826
1819void 1827void
1820rxvt_term::button_press (XButtonEvent &ev) 1828rxvt_term::button_press (XButtonEvent &ev)
3668 seen_esc = true; 3676 seen_esc = true;
3669 continue; 3677 continue;
3670 } 3678 }
3671 else if (ch == C0_BEL || ch == CHAR_ST) 3679 else if (ch == C0_BEL || ch == CHAR_ST)
3672 break; 3680 break;
3681 else if (ch == C0_SYN)
3682 ch = cmd_get8 ();
3673 else if (ch < 0x20) 3683 else if (ch < 0x20)
3674 return NULL; /* other control character - exit */ 3684 return NULL; /* other control character - exit */
3675 3685
3676 seen_esc = false; 3686 seen_esc = false;
3677 3687
3678 if (n >= STRING_MAX - 1) 3688 if (n >= STRING_MAX - 1)
3679 // stop at some sane length 3689 // stop at some sane length
3680 return NULL; 3690 return NULL;
3681 3691
3682 if (ch == C0_SYN)
3683 string[n++] = cmd_get8 ();
3684 else
3685 string[n++] = ch; 3692 string[n++] = ch;
3686 } 3693 }
3687 3694
3688 string[n++] = '\0'; 3695 string[n++] = '\0';
3689 3696
3690 ends_how = (ch == 0x5c ? C0_ESC : ch); 3697 ends_how = (ch == 0x5c ? C0_ESC : ch);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines