api: make OwnedDisplayHandle wrap an opaque type

This will help in case we want to linger the event loop during drop
to prevent use after free in the consumers code.
This commit is contained in:
Kirill Chibisov
2024-11-13 15:29:05 +03:00
committed by GitHub
parent f781e13166
commit 59b1eb5410
19 changed files with 149 additions and 177 deletions

View File

@@ -10,7 +10,7 @@ pub(crate) mod runner;
mod state;
mod window_target;
pub(crate) use window_target::{ActiveEventLoop, OwnedDisplayHandle};
pub(crate) use window_target::ActiveEventLoop;
pub struct EventLoop {
elw: ActiveEventLoop,