-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wails3 alpha windows: fix crash when systray icon is clicked without …
…an attached window (#3271) * Fix: #3270 removes an unnessecary check which returned a double nil wich in turned causes a crash if systray doesn't have an attached window. * Add iconIsInFlyout method to systray_windows and use it to determine if the icon is in the flyout or not when positioning an attached window. * optimize the windows systray window positioning we only need to get the systray bounds if the icon is in the flyout area. * Use correct behavior for placing the window if the systray icon is visible in the taskbar the window should be centered on the systray icon otherwise the icon is in a flyout are and the window should be placed in the corner. Added comments to explain placement logic * consistent placing of systray menu on right vs left click * add PR info in changelog --------- Co-authored-by: Lea Anthony <[email protected]>
- Loading branch information
1 parent
db5553e
commit 675f502
Showing
2 changed files
with
48 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters