Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Jan 16, 2023
1 parent 94e8f28 commit 476f0cc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/platform_impl/ios/uikit/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ extern_methods!(

#[sel(makeKeyAndVisible)]
pub fn makeKeyAndVisible(&self);

#[sel(isKeyWindow)]
pub fn isKeyWindow(&self) -> bool;
}
);
2 changes: 1 addition & 1 deletion src/platform_impl/ios/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ impl Inner {
}

pub fn has_focus(&self) -> bool {
unsafe { msg_send![self.window, isKeyWindow] }
self.window.isKeyWindow()
}

#[inline]
Expand Down
5 changes: 5 additions & 0 deletions src/platform_impl/orbital/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,11 @@ impl Window {
None
}

#[inline]
pub fn has_focus(&self) -> bool {
false
}

#[inline]
pub fn set_theme(&self, _theme: Option<window::Theme>) {}
}
Expand Down

0 comments on commit 476f0cc

Please sign in to comment.