Skip to content

Commit

Permalink
Fix centering at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
hakolao committed Jan 4, 2025
1 parent e7d4041 commit 76d3ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl GlassWindow {
WindowPos::Centered => {
if let Some(monitor) = self.window.current_monitor() {
self.window.set_fullscreen(None);
let size = self.window.inner_size();
let size = self.window.inner_size().to_logical(monitor.scale_factor());
self.window.set_outer_position(get_centered_window_position(
&monitor,
size.width,
Expand Down

0 comments on commit 76d3ad7

Please sign in to comment.