Fix flickering cursor style when a pane was zoomed (#8546)

Release Notes:

- N/A

Co-authored-by: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra 2024-02-28 18:50:48 +01:00 committed by GitHub
parent 7efa8d079d
commit 57f5f128f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View file

@ -409,7 +409,7 @@ impl<'a> ElementContext<'a> {
.requested_cursor_style
.as_ref()
.map_or(true, |prev_style_request| {
style_request.stacking_order > prev_style_request.stacking_order
style_request.stacking_order >= prev_style_request.stacking_order
})
{
self.window.next_frame.requested_cursor_style = Some(style_request.clone());