Skip to content

Avoid redraw call when resized to zero size#449

Open
Klemen2 wants to merge 1 commit into
DioxusLabs:mainfrom
Klemen2:main
Open

Avoid redraw call when resized to zero size#449
Klemen2 wants to merge 1 commit into
DioxusLabs:mainfrom
Klemen2:main

Conversation

@Klemen2

@Klemen2 Klemen2 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

with_viewport already calls request_redraw with a safety check
this should also fix occasional crash when minimizing the window

with_viewport already calls request_redraw with a safety check
this should also fix occasional crash when minimizing the window
@nicoburns

Copy link
Copy Markdown
Member

Hmm... I'm not against removing duplicate calls to request_redraw, but I thought they were harmless because Winit coalesces them into one?

@Klemen2 Klemen2 changed the title Fix double redraw on resize Avoid redraw call when resized to zero size Jun 11, 2026
@Klemen2

Klemen2 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

0.31 does indeed deduplicate automatically. I've changed the title to better describe the change, that occasional crash could have been a driver issue since it used to crash when using use_window().set_minimized(true) and after updating it this doesn't happen on main without changing anything else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants