Make benches compile
This commit is contained in:
9 files changed
+60
-62
No files matched your search
@@ -13,12 +13,14 @@ fn main() {
|
||||
fn app() -> Element {
|
||||
let mut focused = use_signal(|| true);
|
||||
|
||||
use_wry_event_handler(move |event, _| match event {
|
||||
WryEvent::WindowEvent {
|
||||
use_wry_event_handler(move |event, _| {
|
||||
if let WryEvent::WindowEvent {
|
||||
event: WindowEvent::Focused(new_focused),
|
||||
..
|
||||
} => focused.set(*new_focused),
|
||||
_ => {}
|
||||
} = event
|
||||
{
|
||||
focused.set(*new_focused)
|
||||
}
|
||||
});
|
||||
|
||||
rsx! {
|
||||
|
||||
Reference in new issue
Block a user