Implement missing SetForeground api function. Fixes #2
This commit is contained in:
1 parent
f2387804c1
commit
38e3a39782
4 files changed
+19
-2
No files matched your search
@@ -42,4 +42,10 @@ impl WindowState {
|
||||
pub fn logical_size(&self) -> LogicalSize<u32> {
|
||||
self.size.to_logical(self.scale_factor)
|
||||
}
|
||||
|
||||
pub fn focus(&self) {
|
||||
if let Some(ref window) = self.window {
|
||||
window.focus_window();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user