cursor: fix Xwayland unmanaged surfaceAt coordinates
The x and y coordinates for unmanaged Xwayland views were reversed in the fullscreen branch of the surfaceAt() function.
This commit is contained in:
		
				
					committed by
					
						 Isaac Freund
						Isaac Freund
					
				
			
			
				
	
			
			
			
						parent
						
							7b554bde68
						
					
				
				
					commit
					8a8dd9ff65
				
			| @ -579,7 +579,7 @@ pub fn surfaceAt(self: Self) ?SurfaceAtResult { | |||||||
|     if (layerSurfaceAt(output.getLayer(.overlay).*, ox, oy)) |s| return s; |     if (layerSurfaceAt(output.getLayer(.overlay).*, ox, oy)) |s| return s; | ||||||
|  |  | ||||||
|     if (fullscreen_view) |view| { |     if (fullscreen_view) |view| { | ||||||
|         if (build_options.xwayland) if (xwaylandUnmanagedSurfaceAt(ly, lx)) |s| return s; |         if (build_options.xwayland) if (xwaylandUnmanagedSurfaceAt(lx, ly)) |s| return s; | ||||||
|         var sx: f64 = undefined; |         var sx: f64 = undefined; | ||||||
|         var sy: f64 = undefined; |         var sy: f64 = undefined; | ||||||
|         if (view.surfaceAt(ox, oy, &sx, &sy)) |found| { |         if (view.surfaceAt(ox, oy, &sx, &sy)) |found| { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user