mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 13:51:30 +11:00
Don't unnecessarily clone canvas on Web (#2934)
This commit is contained in:
parent
96c0b267e2
commit
4652d48105
|
@ -121,8 +121,8 @@ pub fn is_fullscreen(window: &web_sys::Window, canvas: &HtmlCanvasElement) -> bo
|
|||
|
||||
match document.fullscreen_element() {
|
||||
Some(elem) => {
|
||||
let raw: Element = canvas.clone().into();
|
||||
raw == elem
|
||||
let canvas: &Element = canvas;
|
||||
canvas == &elem
|
||||
}
|
||||
None => false,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue