On Web, never return a MonitorHandle (#3051)

This commit is contained in:
daxpedda 2023-08-26 18:56:44 +02:00 committed by GitHub
parent 48abf52aac
commit a3cba838ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 32 deletions

View file

@ -274,7 +274,7 @@ impl Inner {
#[inline]
pub(crate) fn fullscreen(&self) -> Option<Fullscreen> {
if self.canvas.borrow().is_fullscreen() {
Some(Fullscreen::Borderless(Some(MonitorHandle)))
Some(Fullscreen::Borderless(None))
} else {
None
}
@ -335,7 +335,7 @@ impl Inner {
#[inline]
pub fn current_monitor(&self) -> Option<MonitorHandle> {
Some(MonitorHandle)
None
}
#[inline]
@ -345,7 +345,7 @@ impl Inner {
#[inline]
pub fn primary_monitor(&self) -> Option<MonitorHandle> {
Some(MonitorHandle)
None
}
#[inline]