Skip to content

Commit ecc9f0d

Browse files
committed
Fix acrylic backdrop flicker issue
1 parent 2ea303f commit ecc9f0d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,19 +181,19 @@ private async void OnLoaded(object sender, RoutedEventArgs _)
181181
PreviewMouseMove += MainPreviewMouseMove;
182182
CheckFirstLaunch();
183183
HideStartup();
184-
// show notify icon when flowlauncher is hidden
184+
// Show notify icon when flowlauncher is hidden
185185
InitializeNotifyIcon();
186186
InitializeColorScheme();
187187
WindowsInteropHelper.DisableControlBox(this);
188188
InitProgressbarAnimation();
189+
// Move the window out of screen because setting backdrop will cause flicker with a rectangle
190+
Left = Top = -10000;
191+
await ThemeManager.Instance.RefreshFrameAsync();
189192
// Initialize call twice to work around multi-display alignment issue- https://github.com/Flow-Launcher/Flow.Launcher/issues/2910
190193
InitializePosition();
191194
InitializePosition();
192-
// Refresh frame after position is intialized
193-
await ThemeManager.Instance.RefreshFrameAsync();
194195
PreviewReset();
195-
// since the default main window visibility is visible
196-
// so we need set focus during startup
196+
// Since the default main window visibility is visible, so we need set focus during startup
197197
QueryTextBox.Focus();
198198

199199
_viewModel.PropertyChanged += (o, e) =>

0 commit comments

Comments
 (0)