Skip to content

Context Menu does not work after PC Sleep / Lock #298

@biocross

Description

@biocross

Describe the bug

Hello, I am facing a specific issue where the context menus inside that window stop working after the system is locked and unlocked (or pc goes to sleep and unlocks after that)

I have created a sample project to reproduce the exact issue:

TestApp.zip

Reproduction

  • Run the project and ignore the MainWindow
  • Open your system tray, and you will see a small tray icon for app. Click that, and it will open Window1.
  • Inside the window1, you will see a button to open a menu. When you click that, a menu will open just fine.
  • Now put your computer on sleep or you can just lock it.
  • When you unlock your computer after sleep or lock, open the tray window (Window1) again. Then, try opening the menu by clicking the button inside Window1. The menu will not open. This is the issue.

Hopefully you have some pointers or ideas on how to fix this. I have been struggling with it for a while.

Suggested Solution

No response

Library Version

1.2.8

Operating System

Windows 11

Framework

.NET Core and .NET

Framework Version

7

Source of Package

NuGet.org (Package)

Additional Notes

No response

Validations

  • Check that there isn't already an issue that reports the same or similar problem.
  • Check that this is a bug in the library that should be fixed, not a feature, also this is not about the documentation. (Or please choose the right repo and template.)
  • This is one single problem, or a few problems with the same cause. (If you want to report multiple problems, please create one issue for every single problem.)
  • You've checked that this problem still exists in the latest version. (Keep in mind that we don't provide any support for old versions.)
  • You know that we can't guarantee that we will satisfy your request. This is not really our duty to do everything anyone asks for. Also, you will treat our staff, contributors, and other users with respect and kindness.
  • You're sure there's something wrong with the library itself, not how you're using it. (If you are having issues using it and need help, please go to discussion.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions