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.240 by root, Fri Jan 6 03:40:19 2006 UTC vs.
Revision 1.244 by root, Fri Jan 6 17:09:27 2006 UTC

25 * - extensive modifications 25 * - extensive modifications
26 * Copyright (c) 1998 Alfredo K. Kojima <kojima@windowmaker.org> 26 * Copyright (c) 1998 Alfredo K. Kojima <kojima@windowmaker.org>
27 * Copyright (c) 2001 Marius Gedminas 27 * Copyright (c) 2001 Marius Gedminas
28 * - Ctrl/Mod4+Tab works like Meta+Tab (options) 28 * - Ctrl/Mod4+Tab works like Meta+Tab (options)
29 * Copyright (c) 2003 Rob McMullen <robm@flipturn.org> 29 * Copyright (c) 2003 Rob McMullen <robm@flipturn.org>
30 * Copyright (c) 2003-2005 Marc Lehmann <pcg@goof.com> 30 * Copyright (c) 2003-2006 Marc Lehmann <pcg@goof.com>
31 * 31 *
32 * This program is free software; you can redistribute it and/or modify 32 * This program is free software; you can redistribute it and/or modify
33 * it under the terms of the GNU General Public License as published by 33 * it under the terms of the GNU General Public License as published by
34 * the Free Software Foundation; either version 2 of the License, or 34 * the Free Software Foundation; either version 2 of the License, or
35 * (at your option) any later version. 35 * (at your option) any later version.
1205 1205
1206#ifdef POINTER_BLANK 1206#ifdef POINTER_BLANK
1207void 1207void
1208rxvt_term::pointer_blank () 1208rxvt_term::pointer_blank ()
1209{ 1209{
1210 if (! OPTION (Opt_pointerBlank)) 1210 if (!OPTION (Opt_pointerBlank))
1211 return; 1211 return;
1212 1212
1213 XDefineCursor (display->display, vt, display->blank_cursor); 1213 XDefineCursor (display->display, vt, display->blank_cursor);
1214 XFlush (display->display); 1214 XFlush (display->display);
1215 1215
1414# endif 1414# endif
1415 else 1415 else
1416 iso14755buf = 0; 1416 iso14755buf = 0;
1417 } 1417 }
1418#endif 1418#endif
1419
1420 if (ev.xany.window == vt
1421 && HOOK_INVOKE ((this, HOOK_KEY_RELEASE, DT_XEVENT, &ev, DT_END)))
1422 break;
1419 1423
1420#if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) 1424#if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING)
1421 if (!(ev.xkey.state & ControlMask)) 1425 if (!(ev.xkey.state & ControlMask))
1422 slip_wheel_ev.stop (); 1426 slip_wheel_ev.stop ();
1423 else if (ks == XK_Control_L || ks == XK_Control_R) 1427 else if (ks == XK_Control_L || ks == XK_Control_R)
1870#ifdef MOUSE_REPORT_DOUBLECLICK 1874#ifdef MOUSE_REPORT_DOUBLECLICK
1871 if (ev.button == MEvent.button && clickintime) 1875 if (ev.button == MEvent.button && clickintime)
1872 { 1876 {
1873 /* same button, within alloted time */ 1877 /* same button, within alloted time */
1874 MEvent.clicks++; 1878 MEvent.clicks++;
1879
1875 if (MEvent.clicks > 1) 1880 if (MEvent.clicks > 1)
1876 { 1881 {
1877 /* only report double clicks */ 1882 /* only report double clicks */
1878 MEvent.clicks = 2; 1883 MEvent.clicks = 2;
1879 mouse_report (ev); 1884 mouse_report (ev);
2087 } 2092 }
2088 2093
2089 break; 2094 break;
2090 } 2095 }
2091 } 2096 }
2097
2092 return; 2098 return;
2093 } 2099 }
2100
2094#if MENUBAR 2101#if MENUBAR
2095 /* 2102 /*
2096 * Menubar window processing of button press 2103 * Menubar window processing of button press
2097 */ 2104 */
2098 if (isMenuBarWindow (ev.window)) 2105 if (isMenuBarWindow (ev.window))
2161 if (priv_modes & PrivMode_mouse_report 2168 if (priv_modes & PrivMode_mouse_report
2162 && bypass_keystate 2169 && bypass_keystate
2163 && ev.button == Button1 && MEvent.clicks <= 1) 2170 && ev.button == Button1 && MEvent.clicks <= 1)
2164 selection_extend (ev.x, ev.y, 0); 2171 selection_extend (ev.x, ev.y, 0);
2165 2172
2166 if (!HOOK_INVOKE ((this, HOOK_BUTTON_RELEASE, DT_XEVENT, &ev, DT_END))) 2173 if (HOOK_INVOKE ((this, HOOK_BUTTON_RELEASE, DT_XEVENT, &ev, DT_END)))
2167 return; 2174 return;
2168 2175
2169 switch (ev.button) 2176 switch (ev.button)
2170 { 2177 {
2171 case Button1: 2178 case Button1:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines