From 42d16a18e7fea2aa22e27ac9955e2428a4067fe7 Mon Sep 17 00:00:00 2001 From: mdgaziur Date: Sun, 8 Jan 2023 14:25:43 +0600 Subject: [PATCH] Window: fix positioning bug --- crates/findex/src/gui/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/findex/src/gui/mod.rs b/crates/findex/src/gui/mod.rs index f79ca30..e701057 100644 --- a/crates/findex/src/gui/mod.rs +++ b/crates/findex/src/gui/mod.rs @@ -222,9 +222,8 @@ impl GUI { let screen_width = monitor_geo.width() as f32; window.move_( - (screen_width * 0.5 - (window.allocation().width() / 2) as f32) as i32 - + monitor_geo.x(), - (screen_height * 0.3) as i32 + monitor_geo.y(), + (screen_width * 0.5 - (window.allocation().width() / 2) as f32) as i32, + (screen_height * 0.3) as i32, ); }