Skip to content

Show Windows 11 SnapAssist on hover of Max #2237

Description

@merlinaudio

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

in Win 11 when you hover over the Maximize button you should see
snapassist image

This doesn't fire in VS Code, Teams (electron apps) or Windows Terminal (custom owner draw title bar)

The Electron Core (whomever is responsible for the Maximize button) needs to implement WM_NCHITTEST and reply with HTMAXBUTTON when the hit test is over top of the max button. That will tell Windows it's a Max button which helps Accessibility AND fires SnapAssist.

minimize button image

We could expose a CSS variable to mark minimize/maximize/close buttons, just like --wails-draggable

microsoft/vscode#140932

Describe alternatives you've considered

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions