mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 22:30:04 -04:00
Attach the raw handle data attribute
This commit is contained in:
@@ -38,6 +38,8 @@ impl<T> WindowTarget<T> {
|
|||||||
pub fn register(&self, canvas: &mut backend::Canvas, id: window::Id) {
|
pub fn register(&self, canvas: &mut backend::Canvas, id: window::Id) {
|
||||||
let runner = self.runner.clone();
|
let runner = self.runner.clone();
|
||||||
|
|
||||||
|
canvas.set_attribute("data-raw-handle", &id.0.to_string());
|
||||||
|
|
||||||
canvas.on_blur(move || {
|
canvas.on_blur(move || {
|
||||||
runner.send_event(Event::WindowEvent {
|
runner.send_event(Event::WindowEvent {
|
||||||
window_id: WindowId(id),
|
window_id: WindowId(id),
|
||||||
|
|||||||
Reference in New Issue
Block a user