Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Multiple Display different DPI causing weird staring position #2983

Merged
merged 6 commits into from
Sep 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Flow.Launcher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public MainWindow(Settings settings, MainViewModel mainVM)

InitializeComponent();
InitializePosition();
jjw24 marked this conversation as resolved.
Show resolved Hide resolved
InitializePosition();
taooceros marked this conversation as resolved.
Show resolved Hide resolved

InitSoundEffects();

Expand Down Expand Up @@ -187,6 +188,7 @@ private void OnLoaded(object sender, RoutedEventArgs _)
WindowsInteropHelper.DisableControlBox(this);
InitProgressbarAnimation();
InitializePosition();
jjw24 marked this conversation as resolved.
Show resolved Hide resolved
InitializePosition();
taooceros marked this conversation as resolved.
Show resolved Hide resolved
PreviewReset();
// since the default main window visibility is visible
// so we need set focus during startup
Expand Down Expand Up @@ -642,6 +644,7 @@ private void UpdatePosition()
if (_animating)
return;
InitializePosition();
jjw24 marked this conversation as resolved.
Show resolved Hide resolved
InitializePosition();
taooceros marked this conversation as resolved.
Show resolved Hide resolved
}

private void OnLocationChanged(object sender, EventArgs e)
Expand Down
Loading