Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0123/6

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Send up-events for scroll wheel.
 [rsc] --rw-rw-r-- M 1118886 rsc sys 4197 Jan 23 20:16 sys/src/cmd/vnc/wsys.c
	/n/sourcesdump/2006/0123/plan9/sys/src/cmd/vnc/wsys.c:147,154 - 
	/n/sourcesdump/2006/0124/plan9/sys/src/cmd/vnc/wsys.c:147,160
	  				m.xy.y = atoi(start+1+12);
	  				m.buttons = atoi(start+1+2*12) & 0x1F;
	  				m.xy = subpt(m.xy, screen->r.min);
	- 				if(ptinrect(m.xy, Rpt(ZP, v->dim)))
	+ 				if(ptinrect(m.xy, Rpt(ZP, v->dim))){
	  					mouseevent(v, m);
	+ 					/* send wheel button *release* */ 
	+ 					if ((m.buttons & 0x7) != m.buttons) {
	+ 						m.buttons &= 0x7;
	+ 						mouseevent(v, m);
	+ 					}
	+ 				}
	  			} else
	  				eresized();
	  


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].