)]}'
{
  "commit": "2b9bbc8589390d07f3719f8e0049d28827283cdc",
  "tree": "9479f4a240729329c59e3bf08bf6473d6ba9f709",
  "parents": [
    "c72bd32b3788b3a44c837a38732a317f65da2e71"
  ],
  "author": {
    "name": "CodeDoctor",
    "email": "codedoctor@linwood.dev",
    "time": "Thu Jul 23 00:33:51 2026 +0000"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Jul 23 00:33:51 2026 +0000"
  },
  "message": "Fix non primary buttons not being captured on windows (#188394)\n\n\u003c!--\nThanks for filing a pull request!\nReviewers are typically assigned within a week of filing a request.\nTo learn more about code review, see our documentation on Tree Hygiene:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md\n--\u003e\n\nCloses #166309.\n\nWindows only captured mouse input for primary-button drags. As a result,\ndrag gestures using middle, secondary, or X buttons received a pointer\nremove when leaving the client area.\n\nCapture is now enabled for every supported mouse button and released\nonly\nafter the last pressed mouse button is released.\n\nAlso tested on my universal flutter input demo:\nhttps://github.com/CodeDoctorDE/flutter-input-demo/tree/e448c2cf42981d9c8b5186a7e43d1b82a0239619.\n\n~~Currently in draft since I cannot have 2 pull requests open at the\nsame time.~~\n\n## Pre-launch Checklist\n\n- [x] I read the [Contributor Guide] and followed the process outlined\nthere for submitting PRs.\n- [x] I read the [AI contribution guidelines] and understand my\nresponsibilities, or I am not using AI tools.\n- [x] I read the [Tree Hygiene] wiki page, which explains my\nresponsibilities.\n- [x] I read and followed the [Flutter Style Guide], including [Features\nwe expect every widget to implement].\n- [x] I signed the [CLA].\n- [x] I listed at least one issue that this PR fixes in the description\nabove.\n- [x] I updated/added relevant documentation (doc comments with `///`).\n- [x] I added new tests to check the change I am making, or this PR is\n[test-exempt].\n- [x] I followed the [breaking change policy] and added [Data Driven\nFixes] where supported.\n- [x] All existing and new tests are passing.\n\nIf you need help, consider asking for advice on the #hackers-new channel\non [Discord].\n\nIf this change needs to override an active code freeze, provide a\ncomment explaining why. The code freeze workflow can be overridden by\ncode reviewers. See pinned issues for any active code freezes with\nguidance.\n\n**Note**: The Flutter team is currently trialing the use of [Gemini Code\nAssist for\nGitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code).\nComments from the `gemini-code-assist` bot should not be taken as\nauthoritative feedback from the Flutter team. If you find its comments\nuseful you can update your code accordingly, but if you are unsure or\ndisagree with the feedback, please feel free to wait for a Flutter team\nmember\u0027s review for guidance on which automated comments should be\naddressed.\n\n\u003c!-- Links --\u003e\n[Contributor Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview\n[AI contribution guidelines]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#ai-contribution-guidelines\n[Tree Hygiene]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md\n[test-exempt]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests\n[Flutter Style Guide]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md\n[Features we expect every widget to implement]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement\n[CLA]: https://cla.developers.google.com/\n[flutter/tests]: https://github.com/flutter/tests\n[breaking change policy]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes\n[Discord]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md\n[Data Driven Fixes]:\nhttps://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md\n\n---------\n\nCo-authored-by: Matthew Kosarek \u003cmatt.kosarek@canonical.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2b778ddba021e23f871c534f12cb194edad2821e",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/shell/platform/windows/flutter_window.cc",
      "new_id": "24398ee3cef42c615a678709c20421f874da01f1",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/shell/platform/windows/flutter_window.cc"
    },
    {
      "type": "modify",
      "old_id": "e1fbcfe90076313ac7a707ec7ca61ded309d672c",
      "old_mode": 33188,
      "old_path": "engine/src/flutter/shell/platform/windows/flutter_window_unittests.cc",
      "new_id": "3c3a3f0f488ca773b63d2655c2f6138ac69dc61b",
      "new_mode": 33188,
      "new_path": "engine/src/flutter/shell/platform/windows/flutter_window_unittests.cc"
    }
  ]
}
