mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-04 06:31:54 +00:00 
			
		
		
		
	[client] spice: fix cursor position mismatch with UI scaling
This commit is contained in:
		@@ -979,8 +979,8 @@ static void handleMouseNormal(double ex, double ey)
 | 
			
		||||
 | 
			
		||||
      struct DoublePoint guest =
 | 
			
		||||
      {
 | 
			
		||||
        .x = (g_cursor.pos.x - g_state.dstRect.x) * g_cursor.scale.x * g_cursor.dpiScale,
 | 
			
		||||
        .y = (g_cursor.pos.y - g_state.dstRect.y) * g_cursor.scale.y * g_cursor.dpiScale
 | 
			
		||||
        .x = (g_cursor.pos.x - g_state.dstRect.x) * g_cursor.scale.x,
 | 
			
		||||
        .y = (g_cursor.pos.y - g_state.dstRect.y) * g_cursor.scale.y
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
      /* add the difference to the offset */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user