Implement missing SetForeground api function. Fixes #2

This commit is contained in:
meehl committed 2025-10-28 23:12:09 +01:00
1 parent f2387804c1
commit 38e3a39782
4 files changed
+19 -2

No files matched your search

+6
View File
@@ -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();
}
}
}