mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Attach the raw handle data attribute
This commit is contained in:
parent
a336e9e959
commit
cf3b0f3b70
|
@ -38,6 +38,8 @@ impl<T> WindowTarget<T> {
|
|||
pub fn register(&self, canvas: &mut backend::Canvas, id: window::Id) {
|
||||
let runner = self.runner.clone();
|
||||
|
||||
canvas.set_attribute("data-raw-handle", &id.0.to_string());
|
||||
|
||||
canvas.on_blur(move || {
|
||||
runner.send_event(Event::WindowEvent {
|
||||
window_id: WindowId(id),
|
||||
|
|
Loading…
Reference in a new issue