Fix window title moving stoplights (for now)

This commit is contained in:
Gregory Schier
2023-11-13 23:25:47 -08:00
parent c884cedfc2
commit 38422d59fd
3 changed files with 7 additions and 3 deletions

View File

@@ -840,6 +840,8 @@ fn create_window(handle: &AppHandle<Wry>, url: Option<&str>) -> Window<Wry> {
match e {
WindowEvent::Resized(..) => apply_offset(),
WindowEvent::ThemeChanged(..) => apply_offset(),
WindowEvent::Focused(..) => apply_offset(),
WindowEvent::ScaleFactorChanged { .. } => apply_offset(),
WindowEvent::CloseRequested { .. } => {
println!("CLOSE REQUESTED");
// api.prevent_close();