Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

windows: Use Rc with HCURSOR. #146

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/backend/windows/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ struct WndState {
}

#[derive(Clone, PartialEq, Eq)]
pub struct CustomCursor(Arc<HCursor>);
pub struct CustomCursor(Rc<HCursor>);

#[derive(PartialEq, Eq)]
struct HCursor(HCURSOR);
Expand Down Expand Up @@ -1962,7 +1962,7 @@ impl WindowHandle {
};
let icon = CreateIconIndirect(&mut icon_info);

Some(Cursor::Custom(CustomCursor(Arc::new(HCursor(icon)))))
Some(Cursor::Custom(CustomCursor(Rc::new(HCursor(icon)))))
}
} else {
None
Expand Down