Merge pull request #6502 from sahilyeole/fix/wayland_distorted_stream_scaling
Fix: wayland cursor mismatch on fractional scaling
This commit is contained in:
		
						commit
						1c4f28e708
					
				| @ -175,8 +175,13 @@ pub(super) async fn check_init() -> ResultType<()> { | |||||||
|                             .trim_end_matches(",") |                             .trim_end_matches(",") | ||||||
|                             .parse() |                             .parse() | ||||||
|                             .unwrap_or(origin.1 + height as i32); |                             .unwrap_or(origin.1 + height as i32); | ||||||
|  |                         if w < origin.0 + width as i32 || h < origin.1 + height as i32 { | ||||||
|  |                             (origin.0 + width as i32, origin.1 + height as i32) | ||||||
|  |                         } | ||||||
|  |                         else{ | ||||||
|                             (w, h) |                             (w, h) | ||||||
|                         } |                         } | ||||||
|  |                     } | ||||||
|                     _ => (origin.0 + width as i32, origin.1 + height as i32), |                     _ => (origin.0 + width as i32, origin.1 + height as i32), | ||||||
|                 }; |                 }; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user