Skip to content

form.go, notifyicon.go: Improved tracking of modal loops#126

Merged
dblohm7 merged 1 commit intomainfrom
aaron/modal_loop_fixes
Feb 13, 2025
Merged

form.go, notifyicon.go: Improved tracking of modal loops#126
dblohm7 merged 1 commit intomainfrom
aaron/modal_loop_fixes

Conversation

@dblohm7
Copy link
Member

@dblohm7 dblohm7 commented Feb 13, 2025

For Form, we add a new event that is published if EnterMode is called.

For NotifyIcons, we move tracking whether existing context menus are active to handlers for WM_ENTERMENULOOP and WM_EXITMENULOOP, as these messages give us more precise notification as to when menu(s) are present. We also change the tracking variable from a bool to an int, since Win32 APIs to permit nested context menus when specific flags are provided.

We also pick up the latest revision of win.

Updates https://github.com/tailscale/corp/issues/26617

For Form, we add a new event that is published if EnterMode is called.

For NotifyIcons, we move tracking whether existing context menus are
active to handlers for WM_ENTERMENULOOP and WM_EXITMENULOOP, as these
messages give us more precise notification as to when menu(s) are
present. We also change the tracking variable from a bool to an int,
since Win32 APIs to permit nested context menus when specific flags
are provided.

We also pick up the latest revision of win.

Updates tailscale/corp#26617

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
@dblohm7 dblohm7 requested a review from nickkhyl February 13, 2025 22:37
@dblohm7 dblohm7 merged commit bf9222e into main Feb 13, 2025
2 checks passed
@dblohm7 dblohm7 deleted the aaron/modal_loop_fixes branch February 13, 2025 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants