mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-09-12 17:06:26 +00:00
fix(backend): show window before ignoring cursor events
Previously, when built, ignoring cursor events before the window was shown resulted in a panic!() from tao. Now, by moving show() to before the call, the panic is resolved.
This commit is contained in:
parent
b8d87a745f
commit
223f7960aa
1 changed files with 1 additions and 1 deletions
|
@ -75,13 +75,13 @@ async fn show_hud(app: tauri::AppHandle, title: String) -> Result<(), String> {
|
||||||
};
|
};
|
||||||
|
|
||||||
let window_clone = hud_window.clone();
|
let window_clone = hud_window.clone();
|
||||||
|
window_clone.show().map_err(|e| e.to_string())?;
|
||||||
window_clone
|
window_clone
|
||||||
.emit("hud-message", &title)
|
.emit("hud-message", &title)
|
||||||
.map_err(|e| e.to_string())?;
|
.map_err(|e| e.to_string())?;
|
||||||
window_clone
|
window_clone
|
||||||
.set_ignore_cursor_events(true)
|
.set_ignore_cursor_events(true)
|
||||||
.map_err(|e| e.to_string())?;
|
.map_err(|e| e.to_string())?;
|
||||||
window_clone.show().map_err(|e| e.to_string())?;
|
|
||||||
window_clone.set_focus().map_err(|e| e.to_string())?;
|
window_clone.set_focus().map_err(|e| e.to_string())?;
|
||||||
|
|
||||||
tauri::async_runtime::spawn(async move {
|
tauri::async_runtime::spawn(async move {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue