Mercurial > emacs
annotate oldXMenu/SetAEQ.c @ 48574:3e3b1f1265f5
Avoid accidental yanking of text while scrolling with
the mouse wheel. This adds a short period after each mouse wheel
scroll event where a click on the mouse wheel button is ignored.
(mouse-wheel-click-event, mouse-wheel-inhibit-click-time): New customs.
(mouse-wheel-click-button, mwheel-inhibit-click-event-timer): New vars.
(mwheel-inhibit-click-timeout,mwheel-filter-click-events): New defuns.
(mwheel-scroll): Add mwheel-filter-click-events as pre-command-hook.
Start mwheel-inhibit-click-event-timer with timeout handler
mwheel-inhibit-click-timeout.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Thu, 28 Nov 2002 23:03:30 +0000 |
parents | bbce331da1be |
children | 695cf19ef79e d7ddb3e565de |
rev | line source |
---|---|
25858 | 1 #include "copyright.h" |
2 | |
3 /* $Header: /u/src/emacs/19.0/oldXMenu/RCS/SetAEQ.c,v 1.1 1992/04/11 22:10:20 jimb Exp $ */ | |
4 /* Copyright Massachusetts Institute of Technology 1985 */ | |
5 | |
6 /* | |
7 * XMenu: MIT Project Athena, X Window system menu package | |
8 * | |
9 * XMenuSetAEQ - Set Asynchronous event queuing mode. | |
10 * When enabled asynchronous events will be queue while | |
11 * a menu is being displayed and restored to the X | |
12 * event queue when the menu is taken down. | |
13 * | |
14 * Author: Tony Della Fera, DEC | |
15 * March 12, 1986 | |
16 * | |
17 */ | |
18 | |
19 #include "XMenuInt.h" | |
20 | |
21 XMenuSetAEQ(menu, aeq) | |
22 register XMenu *menu; /* Menu object to be modified. */ | |
23 register int aeq; /* AEQ mode? */ | |
24 { | |
25 /* | |
26 * Set the AEQ mode switch. | |
27 */ | |
28 menu->aeq = aeq; | |
29 } |