Skip to content

BUG: Setting Window Freeze Issue after System Sleeping #3139

@Jack251970

Description

@Jack251970

Checks

  • I have checked that this issue has not already been reported.

  • I am using the latest version of Flow Launcher.

Problem Description

When you change the system to sleep mode, and the settings window will possibly freeze.

In SettingWindows.xaml.cs,
`
private void OnLoaded(object sender, RoutedEventArgs e)
{
RefreshMaximizeRestoreButton();
// Fix (workaround) for (Win+L)
// https://stackoverflow.com/questions/4951058/software-rendering-mode-wpf
HwndSource hwndSource = PresentationSource.FromVisual(this) as HwndSource;
HwndTarget hwndTarget = hwndSource.CompositionTarget;
hwndTarget.RenderMode = RenderMode.Default;

InitializePosition();

}
these codes are used forthe window freezes after lock screen`, but it seems that these codes cannot fix the problem when the system goes to the sleep mode.

This is probably the correct reason of the issue of PR #3088.

To Reproduce

  1. Sleep Windows.
  2. Start Windows.
  3. Open settings window, and the window is frozen.

Screenshots

2024-12-07.20-18-43.mp4

When the settings window is frozen, the main window can still work but the right context menu of the search will freeze.

And the NavigationView_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args) event in SettingWindows.xaml.cs can still be triggered when you click the menu item but the interface will not refresh at all.

Flow Launcher Version

1.19.4

Windows Build Number

10.0.22631.4037

Error Log

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions