Wayland: skip pointer release if a surface has capture [chromium/src : main]

0 views
Skip to first unread message

Mitchell Cohen (Gerrit)

unread,
Jun 21, 2026, 2:03:37 PM (8 days ago) Jun 21
to Thomas Anderson, Kramer Ge, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
Attention needed from Kramer Ge and Thomas Anderson

Mitchell Cohen added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Mitchell Cohen . unresolved

Note: I cannot actually repro the issue in https://issues.chromium.org/issues/500653052 to confirm that this fixes it, but I can confirm that it does not regress the previous fixes in https://chromium-review.googlesource.com/c/chromium/src/+/7091872 and https://chromium-review.googlesource.com/c/chromium/src/+/7746265.

Open in Gerrit

Related details

Attention is currently required from:
  • Kramer Ge
  • Thomas Anderson
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iafc97bb92049de76917f9c4008453870562fa8b4
Gerrit-Change-Number: 7975577
Gerrit-PatchSet: 1
Gerrit-Owner: Mitchell Cohen <mitc...@agilebits.com>
Gerrit-Reviewer: Kramer Ge <fang...@chromium.org>
Gerrit-Reviewer: Thomas Anderson <thomasa...@chromium.org>
Gerrit-Attention: Thomas Anderson <thomasa...@chromium.org>
Gerrit-Attention: Kramer Ge <fang...@chromium.org>
Gerrit-Comment-Date: Sun, 21 Jun 2026 18:03:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Thomas Anderson (Gerrit)

unread,
Jun 22, 2026, 4:16:44 PM (7 days ago) Jun 22
to Mitchell Cohen, Chromium LUCI CQ, Kramer Ge, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
Attention needed from Kramer Ge and Mitchell Cohen

Thomas Anderson voted and added 1 comment

Votes added by Thomas Anderson

Code-Review+1

1 comment

Patchset-level comments
Mitchell Cohen . resolved

Note: I cannot actually repro the issue in https://issues.chromium.org/issues/500653052 to confirm that this fixes it, but I can confirm that it does not regress the previous fixes in https://chromium-review.googlesource.com/c/chromium/src/+/7091872 and https://chromium-review.googlesource.com/c/chromium/src/+/7746265.

Thomas Anderson

Acknowledged

Open in Gerrit

Related details

Attention is currently required from:
  • Kramer Ge
  • Mitchell Cohen
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Iafc97bb92049de76917f9c4008453870562fa8b4
Gerrit-Change-Number: 7975577
Gerrit-PatchSet: 1
Gerrit-Owner: Mitchell Cohen <mitc...@agilebits.com>
Gerrit-Reviewer: Kramer Ge <fang...@chromium.org>
Gerrit-Reviewer: Mitchell Cohen <mitc...@agilebits.com>
Gerrit-Reviewer: Thomas Anderson <thomasa...@chromium.org>
Gerrit-Attention: Mitchell Cohen <mitc...@agilebits.com>
Gerrit-Attention: Kramer Ge <fang...@chromium.org>
Gerrit-Comment-Date: Mon, 22 Jun 2026 20:16:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Mitchell Cohen <mitc...@agilebits.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Kramer Ge (Gerrit)

unread,
Jun 22, 2026, 5:35:31 PM (7 days ago) Jun 22
to Mitchell Cohen, Thomas Anderson, Chromium LUCI CQ, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
Attention needed from Mitchell Cohen

Kramer Ge voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Mitchell Cohen
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Iafc97bb92049de76917f9c4008453870562fa8b4
    Gerrit-Change-Number: 7975577
    Gerrit-PatchSet: 1
    Gerrit-Owner: Mitchell Cohen <mitc...@agilebits.com>
    Gerrit-Reviewer: Kramer Ge <fang...@chromium.org>
    Gerrit-Reviewer: Mitchell Cohen <mitc...@agilebits.com>
    Gerrit-Reviewer: Thomas Anderson <thomasa...@chromium.org>
    Gerrit-Attention: Mitchell Cohen <mitc...@agilebits.com>
    Gerrit-Comment-Date: Mon, 22 Jun 2026 21:35:20 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Kramer Ge (Gerrit)

    unread,
    Jun 22, 2026, 5:35:38 PM (7 days ago) Jun 22
    to Mitchell Cohen, Thomas Anderson, Chromium LUCI CQ, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
    Attention needed from Mitchell Cohen

    Kramer Ge voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Mitchell Cohen
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Iafc97bb92049de76917f9c4008453870562fa8b4
    Gerrit-Change-Number: 7975577
    Gerrit-PatchSet: 1
    Gerrit-Owner: Mitchell Cohen <mitc...@agilebits.com>
    Gerrit-Reviewer: Kramer Ge <fang...@chromium.org>
    Gerrit-Reviewer: Mitchell Cohen <mitc...@agilebits.com>
    Gerrit-Reviewer: Thomas Anderson <thomasa...@chromium.org>
    Gerrit-Attention: Mitchell Cohen <mitc...@agilebits.com>
    Gerrit-Comment-Date: Mon, 22 Jun 2026 21:35:28 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Jun 22, 2026, 6:42:10 PM (6 days ago) Jun 22
    to Mitchell Cohen, Kramer Ge, Thomas Anderson, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    Wayland: skip pointer release if a surface has capture

    Compositors should fire the pointer enter event for a new surface in the
    same frame as the previous leave event, but sometimes they don't. Check
    to see if Views still has pointer capture before releasing the pointer
    instead of relying only on frame timing. This should make it more
    reliable to hold down right-click to open a menu.
    Bug: 500653052
    Change-Id: Iafc97bb92049de76917f9c4008453870562fa8b4
    Reviewed-by: Kramer Ge <fang...@chromium.org>
    Reviewed-by: Thomas Anderson <thomasa...@chromium.org>
    Commit-Queue: Kramer Ge <fang...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1650629}
    Files:
    • M ui/ozone/platform/wayland/host/wayland_event_source.cc
    • M ui/ozone/platform/wayland/host/wayland_event_source_unittest.cc
    Change size: M
    Delta: 2 files changed, 55 insertions(+), 8 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Thomas Anderson, +1 by Kramer Ge
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Iafc97bb92049de76917f9c4008453870562fa8b4
    Gerrit-Change-Number: 7975577
    Gerrit-PatchSet: 2
    Gerrit-Owner: Mitchell Cohen <mitc...@agilebits.com>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Kramer Ge <fang...@chromium.org>
    Gerrit-Reviewer: Mitchell Cohen <mitc...@agilebits.com>
    Gerrit-Reviewer: Thomas Anderson <thomasa...@chromium.org>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages