Plan 9 from Bell Labs’s /usr/web/sources/extra/changes/2006/0313

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


rio: cancel window selection if pointer ends outside window
 [rsc] --rw-rw-r-- M 521269 glenda sys 22866 Mar 13 17:30 sys/src/cmd/rio/rio.c
	/n/sourcesdump/2006/0313/plan9/sys/src/cmd/rio/rio.c:1011,1017 - 
	/n/sourcesdump/2006/0314/plan9/sys/src/cmd/rio/rio.c:1011,1017
	  		w = wpointto(mouse->xy);
	  	else
	  		w = nil;
	- 	if(wait)
	+ 	if(wait){
	  		while(mouse->buttons){
	  			if(mouse->buttons!=4 && w !=nil){	/* cancel */
	  				cornercursor(input, mouse->xy, 0);
	/n/sourcesdump/2006/0313/plan9/sys/src/cmd/rio/rio.c:1019,1024 - 
	/n/sourcesdump/2006/0314/plan9/sys/src/cmd/rio/rio.c:1019,1027
	  			}
	  			readmouse(mousectl);
	  		}
	+ 		if(w != nil && wpointto(mouse->xy) != w)
	+ 			w = nil;
	+ 	}
	  	cornercursor(input, mouse->xy, 0);
	  	moveto(mousectl, mouse->xy);	/* force cursor update; ugly */
	  	menuing = FALSE;


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.