Add WindowBuilder::with_cursor() (#3319)

This commit is contained in:
daxpedda 2023-12-26 19:50:58 +01:00 committed by GitHub
parent f5c691467b
commit ba654bb61e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 1 deletions

View file

@ -1225,6 +1225,8 @@ impl<'a, T: 'static> InitData<'a, T> {
win.set_content_protected(true);
}
win.set_cursor(attributes.cursor);
// Set visible before setting the size to ensure the
// attribute is correctly applied.
win.set_visible(attributes.visible);