mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +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() {
|
match document.fullscreen_element() {
|
||||||
Some(elem) => {
|
Some(elem) => {
|
||||||
let raw: Element = canvas.clone().into();
|
let canvas: &Element = canvas;
|
||||||
raw == elem
|
canvas == &elem
|
||||||
}
|
}
|
||||||
None => false,
|
None => false,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue