kdrive: changes ephyr API according mpx merge.
This fix host-cursor in Xephyr server. Signed-off-by: Tiago Vignatti <vignatti@c3sl.ufpr.br> Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
This commit is contained in:
		
							parent
							
								
									5a3d06b8f4
								
							
						
					
					
						commit
						5ba07cb548
					
				| 
						 | 
				
			
			@ -837,7 +837,7 @@ ephyrCrossScreen (ScreenPtr pScreen, Bool entering)
 | 
			
		|||
int ephyrCurScreen; /*current event screen*/
 | 
			
		||||
 | 
			
		||||
static void
 | 
			
		||||
ephyrWarpCursor (ScreenPtr pScreen, int x, int y)
 | 
			
		||||
ephyrWarpCursor (DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y)
 | 
			
		||||
{
 | 
			
		||||
    ephyrBlockSigio ();
 | 
			
		||||
    ephyrCurScreen = pScreen->myNum;
 | 
			
		||||
| 
						 | 
				
			
			@ -849,7 +849,9 @@ miPointerScreenFuncRec ephyrPointerScreenFuncs =
 | 
			
		|||
{
 | 
			
		||||
  ephyrCursorOffScreen,
 | 
			
		||||
  ephyrCrossScreen,
 | 
			
		||||
  ephyrWarpCursor
 | 
			
		||||
  ephyrWarpCursor,
 | 
			
		||||
  NULL,
 | 
			
		||||
  NULL
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#ifdef XF86DRI
 | 
			
		||||
| 
						 | 
				
			
			@ -911,7 +913,7 @@ ephyrPoll(void)
 | 
			
		|||
                  if (ev.data.mouse_motion.screen >= 0)
 | 
			
		||||
                    {
 | 
			
		||||
                      ephyrWarpCursor
 | 
			
		||||
                            (screenInfo.screens[ev.data.mouse_motion.screen],
 | 
			
		||||
                            (inputInfo.pointer, screenInfo.screens[ev.data.mouse_motion.screen],
 | 
			
		||||
                             ev.data.mouse_motion.x,
 | 
			
		||||
                             ev.data.mouse_motion.y );
 | 
			
		||||
                    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -290,12 +290,18 @@ ephyrMoveCursor(DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y)
 | 
			
		|||
  ;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static Bool
 | 
			
		||||
ephyrDeviceCursorInitialize(DeviceIntPtr pDev, ScreenPtr pScreen)
 | 
			
		||||
{
 | 
			
		||||
  return TRUE;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
miPointerSpriteFuncRec EphyrPointerSpriteFuncs = {
 | 
			
		||||
	ephyrRealizeCursor,
 | 
			
		||||
	ephyrUnrealizeCursor,
 | 
			
		||||
	ephyrSetCursor,
 | 
			
		||||
	ephyrMoveCursor,
 | 
			
		||||
        NULL,
 | 
			
		||||
    ephyrDeviceCursorInitialize,
 | 
			
		||||
        NULL
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue