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.279 by root, Sat Jan 21 14:25:05 2006 UTC vs.
Revision 1.280 by root, Mon Jan 23 23:33:58 2006 UTC

1823 /* 1823 /*
1824 * VT window processing of button press 1824 * VT window processing of button press
1825 */ 1825 */
1826 if (ev.window == vt) 1826 if (ev.window == vt)
1827 { 1827 {
1828 if (HOOK_INVOKE ((this, HOOK_BUTTON_PRESS, DT_XEVENT, &ev, DT_END)))
1829 return;
1830
1828#if ISO_14755 1831#if ISO_14755
1829 // 5.4 1832 // 5.4
1830 if (iso14755buf & (ISO_14755_STARTED | ISO_14755_54)) 1833 if (iso14755buf & (ISO_14755_STARTED | ISO_14755_54))
1831 { 1834 {
1832 iso14755_54 (ev.x, ev.y); 1835 iso14755_54 (ev.x, ev.y);
1874 else 1877 else
1875 { 1878 {
1876 if (ev.button != MEvent.button) 1879 if (ev.button != MEvent.button)
1877 MEvent.clicks = 0; 1880 MEvent.clicks = 0;
1878 1881
1879 if (!HOOK_INVOKE ((this, HOOK_BUTTON_PRESS, DT_XEVENT, &ev, DT_END)))
1880 switch (ev.button) 1882 switch (ev.button)
1881 { 1883 {
1882 case Button1: 1884 case Button1:
1883 /* allow meta + click to select rectangular areas */ 1885 /* allow meta + click to select rectangular areas */
1884 /* should be done in screen.C */ 1886 /* should be done in screen.C */
1885#if ENABLE_FRILLS 1887#if ENABLE_FRILLS
1886 selection.rect = !!(ev.state & ModMetaMask); 1888 selection.rect = !!(ev.state & ModMetaMask);
1887#else 1889#else
1888 selection.rect = false; 1890 selection.rect = false;
1889#endif 1891#endif
1890 1892
1891 /* allow shift+left click to extend selection */ 1893 /* allow shift+left click to extend selection */
1892 if (ev.state & ShiftMask && !(priv_modes & PrivMode_mouse_report)) 1894 if (ev.state & ShiftMask && !(priv_modes & PrivMode_mouse_report))
1893 { 1895 {
1894 if (MEvent.button == Button1 && clickintime) 1896 if (MEvent.button == Button1 && clickintime)
1895 selection_rotate (ev.x, ev.y); 1897 selection_rotate (ev.x, ev.y);
1896 else 1898 else
1897 selection_extend (ev.x, ev.y, 1); 1899 selection_extend (ev.x, ev.y, 1);
1898 } 1900 }
1899 else 1901 else
1900 { 1902 {
1901 if (MEvent.button == Button1 && clickintime) 1903 if (MEvent.button == Button1 && clickintime)
1902 MEvent.clicks++; 1904 MEvent.clicks++;
1903 else 1905 else
1904 MEvent.clicks = 1; 1906 MEvent.clicks = 1;
1905 1907
1906 selection_click (MEvent.clicks, ev.x, ev.y); 1908 selection_click (MEvent.clicks, ev.x, ev.y);
1907 } 1909 }
1908 1910
1909 MEvent.button = Button1; 1911 MEvent.button = Button1;
1910 break; 1912 break;
1911 1913
1912 case Button3: 1914 case Button3:
1913 if (MEvent.button == Button3 && clickintime) 1915 if (MEvent.button == Button3 && clickintime)
1914 selection_rotate (ev.x, ev.y); 1916 selection_rotate (ev.x, ev.y);
1915 else 1917 else
1916 selection_extend (ev.x, ev.y, 1); 1918 selection_extend (ev.x, ev.y, 1);
1917 1919
1918 MEvent.button = Button3; 1920 MEvent.button = Button3;
1919 break; 1921 break;
1920 } 1922 }
1921 } 1923 }
1922 1924
1923 MEvent.time = ev.time; 1925 MEvent.time = ev.time;
1924 return; 1926 return;
1925 } 1927 }
1926 1928
2089 sel_scroll_ev.stop(); 2091 sel_scroll_ev.stop();
2090#endif 2092#endif
2091 2093
2092 if (ev.window == vt) 2094 if (ev.window == vt)
2093 { 2095 {
2096 if (HOOK_INVOKE ((this, HOOK_BUTTON_RELEASE, DT_XEVENT, &ev, DT_END)))
2097 return;
2098
2094#if ISO_14755 2099#if ISO_14755
2095 // 5.4 2100 // 5.4
2096 if (iso14755buf & (ISO_14755_STARTED | ISO_14755_54)) 2101 if (iso14755buf & (ISO_14755_STARTED | ISO_14755_54))
2097 return; 2102 return;
2098#endif 2103#endif
2104
2099 if (reportmode) 2105 if (reportmode)
2100 { 2106 {
2101 /* mouse report from vt window */ 2107 /* mouse report from vt window */
2102 /* don't report release of wheel "buttons" */ 2108 /* don't report release of wheel "buttons" */
2103 if (ev.button >= 4) 2109 if (ev.button >= 4)
2126 */ 2132 */
2127 if (priv_modes & PrivMode_mouse_report 2133 if (priv_modes & PrivMode_mouse_report
2128 && bypass_keystate 2134 && bypass_keystate
2129 && ev.button == Button1 && MEvent.clicks <= 1) 2135 && ev.button == Button1 && MEvent.clicks <= 1)
2130 selection_extend (ev.x, ev.y, 0); 2136 selection_extend (ev.x, ev.y, 0);
2131
2132 if (HOOK_INVOKE ((this, HOOK_BUTTON_RELEASE, DT_XEVENT, &ev, DT_END)))
2133 return;
2134 2137
2135 switch (ev.button) 2138 switch (ev.button)
2136 { 2139 {
2137 case Button1: 2140 case Button1:
2138 case Button3: 2141 case Button3:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines