geom3trik / tuix

Cross-platform GUI toolkit written in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sending Redraw event on_draw does not work on Windows

ollpu opened this issue · comments

state.insert_event(Event::new(WindowEvent::Redraw).direct(Entity::root()));

is intended to cause a new redraw immediately, and in fact does so on Linux.

However, it does not work on Windows.

Workaround: Use a perpetual animation. Ugly, especially given there's no loop functionality yet.