… | |
… | |
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 |
1207 | void |
1207 | void |
1208 | rxvt_term::pointer_blank () |
1208 | rxvt_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 && HOOK_INVOKE ((this, HOOK_KEY_RELEASE, DT_XEVENT, &ev, DT_END))) |
|
|
1421 | break; |
1419 | |
1422 | |
1420 | #if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) |
1423 | #if defined(MOUSE_WHEEL) && defined(MOUSE_SLIP_WHEELING) |
1421 | if (!(ev.xkey.state & ControlMask)) |
1424 | if (!(ev.xkey.state & ControlMask)) |
1422 | slip_wheel_ev.stop (); |
1425 | slip_wheel_ev.stop (); |
1423 | else if (ks == XK_Control_L || ks == XK_Control_R) |
1426 | else if (ks == XK_Control_L || ks == XK_Control_R) |
… | |
… | |
1870 | #ifdef MOUSE_REPORT_DOUBLECLICK |
1873 | #ifdef MOUSE_REPORT_DOUBLECLICK |
1871 | if (ev.button == MEvent.button && clickintime) |
1874 | if (ev.button == MEvent.button && clickintime) |
1872 | { |
1875 | { |
1873 | /* same button, within alloted time */ |
1876 | /* same button, within alloted time */ |
1874 | MEvent.clicks++; |
1877 | MEvent.clicks++; |
|
|
1878 | |
1875 | if (MEvent.clicks > 1) |
1879 | if (MEvent.clicks > 1) |
1876 | { |
1880 | { |
1877 | /* only report double clicks */ |
1881 | /* only report double clicks */ |
1878 | MEvent.clicks = 2; |
1882 | MEvent.clicks = 2; |
1879 | mouse_report (ev); |
1883 | mouse_report (ev); |
… | |
… | |
2087 | } |
2091 | } |
2088 | |
2092 | |
2089 | break; |
2093 | break; |
2090 | } |
2094 | } |
2091 | } |
2095 | } |
|
|
2096 | |
2092 | return; |
2097 | return; |
2093 | } |
2098 | } |
|
|
2099 | |
2094 | #if MENUBAR |
2100 | #if MENUBAR |
2095 | /* |
2101 | /* |
2096 | * Menubar window processing of button press |
2102 | * Menubar window processing of button press |
2097 | */ |
2103 | */ |
2098 | if (isMenuBarWindow (ev.window)) |
2104 | if (isMenuBarWindow (ev.window)) |