mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
* fix: re-adding focus/blur events for linux and macos, closes #2485 * add change files [skip ci] Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
committed by
GitHub
parent
1f98853573
commit
3b33d67aa4
6
.changes/fix-focus-blur-events-wry.md
Normal file
6
.changes/fix-focus-blur-events-wry.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"tauri-runtime-wry": patch
|
||||
"tauri": patch
|
||||
---
|
||||
|
||||
Fixes `WindowEvent::Focus` and `WindowEvent::Blur` events not firing.
|
||||
5
.changes/fix-focus-blur-events.md
Normal file
5
.changes/fix-focus-blur-events.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch
|
||||
---
|
||||
|
||||
Fixes `tauri://focus` and `tauri://blur` events not firing.
|
||||
@@ -516,6 +516,8 @@ impl<'a> From<&WryWindowEvent<'a>> for WindowEventWrapper {
|
||||
scale_factor: *scale_factor,
|
||||
new_inner_size: PhysicalSizeWrapper(**new_inner_size).into(),
|
||||
},
|
||||
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
||||
WryWindowEvent::Focused(focused) => WindowEvent::Focused(*focused),
|
||||
_ => return Self(None),
|
||||
};
|
||||
Self(Some(event))
|
||||
|
||||
Reference in New Issue
Block a user