Prefer touchscreen to mouse
This commit is contained in:
		
							parent
							
								
									fe477855d7
								
							
						
					
					
						commit
						2698ee9f29
					
				| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
/*
 | 
			
		||||
 * $XFree86: xc/programs/Xserver/hw/kdrive/linux/ts.c,v 1.7 2002/08/02 16:11:35 keithp Exp $
 | 
			
		||||
 * $XFree86: xc/programs/Xserver/hw/kdrive/linux/ts.c,v 1.8 2002/08/02 16:30:50 keithp Exp $
 | 
			
		||||
 *
 | 
			
		||||
 * Derived from ps2.c by Jim Gettys
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -183,6 +183,8 @@ TsInit (void)
 | 
			
		|||
		if (KdRegisterFd (TsInputType, fd, TsRead, (void *) mi))
 | 
			
		||||
		    n++;
 | 
			
		||||
	    }
 | 
			
		||||
	    else
 | 
			
		||||
		close (fd);
 | 
			
		||||
	}
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -309,12 +309,12 @@ KdMouseProc(DeviceIntPtr pDevice, int onoff)
 | 
			
		|||
    case DEVICE_ON:
 | 
			
		||||
	pDev->on = TRUE;
 | 
			
		||||
	pKdPointer = pDevice;
 | 
			
		||||
	if (kdMouseFuncs)
 | 
			
		||||
	    (*kdMouseFuncs->Init) ();
 | 
			
		||||
#ifdef TOUCHSCREEN
 | 
			
		||||
	if (kdTsFuncs)
 | 
			
		||||
	    (*kdTsFuncs->Init) ();
 | 
			
		||||
#endif
 | 
			
		||||
	if (kdMouseFuncs)
 | 
			
		||||
	    (*kdMouseFuncs->Init) ();
 | 
			
		||||
	break;
 | 
			
		||||
    case DEVICE_OFF:
 | 
			
		||||
    case DEVICE_CLOSE:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue