We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6ada64 commit aa5a3f5Copy full SHA for aa5a3f5
1 file changed
src-tauri/src/window_manager/windows.rs
@@ -192,13 +192,13 @@ impl WindowManager {
192
let icon_width = 0;
193
let icon_height = 0;
194
195
- let icon_center_x = icon_x + (icon_width as i32 / 2);
+ let icon_center_x = icon_x + (icon_width / 2);
196
let default_x = icon_center_x - (physical_width / 2);
197
let max_x = work_right - physical_gap - physical_width;
198
let min_x = work_left + physical_gap;
199
let clamped_x = default_x.clamp(min_x, max_x);
200
201
- let icon_center_y = icon_y + (icon_height as i32 / 2);
+ let icon_center_y = icon_y + (icon_height / 2);
202
let default_y = icon_center_y - (physical_height / 2);
203
let max_y = work_bottom - physical_gap - physical_height;
204
let min_y = work_top + physical_gap;
0 commit comments