Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Windows 11] Snap layouts for custom maximize buttons

Open
#70 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp, flutter

Research direction

Start by tracing the Windows handling of WM_NCHITTEST and review the linked Windows 11 snap-layout example. Determine how a maximize-button rectangle in content coordinates can be supplied and how hover and press states reach the Flutter button. Done means custom caption buttons trigger the Windows 11 snap flyout and preserve those states.

Written by the indexing model from the issue text.

Description

enhancement

On Windows 11, hovering the maximize button shows the snap layout flyout. Apps that hide the native title bar and draw their own caption buttons lose it, unless the window answers WM_NCHITTEST with HTMAXBUTTON over their maximize button.

Proposal: let the app tell the window where its maximize button is (for example Window::SetMaximizeButtonRect(Rect), in content coordinates), and have the Windows hit-testing return HTMAXBUTTON there, with the hover and press states forwarded so the Flutter button can still render them.

Background:

  • leanflutter/window_manager#122: Windows 11 snap layout support (see the sample linked there: luoluoqixi/flutter_windows11_snap_layouts_examples)
Dominant language
C++
Stars
34
Forks
7
Avg merge
3d 1h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from libnativeapi/nativeapi

All issues in libnativeapi/nativeapi

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.