ozone/wayland: Ensure server-side cursor shapes are always used on lacros [chromium/src : main]

33 views
Skip to first unread message

Nick Yamane (Gerrit)

unread,
Apr 22, 2021, 4:15:33 PM4/22/21
to ozone-...@chromium.org

Attention is currently required from: Erik Chen, Nick Yamane, Antonio Gomes.

Nick Yamane uploaded patch set #3 to this change.

View Change

ozone/wayland: Ensure server-side cursor shapes are always used on lacros

Server-side cursor shapes support was first introduced at [1]. Though,
in the wl_pointer::enter event handler, it is not used, which leads to
empty cursor occasionally.

R=toni...@igalia.com

Bug: 1199408
Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
---
M ui/ozone/platform/wayland/host/wayland_window.cc
1 file changed, 5 insertions(+), 17 deletions(-)

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 3
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@google.com>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@google.com>
Gerrit-Attention: Nick Yamane <nick...@igalia.com>
Gerrit-Attention: Antonio Gomes <toni...@igalia.com>
Gerrit-MessageType: newpatchset

Nick Yamane (Gerrit)

unread,
Apr 22, 2021, 4:16:09 PM4/22/21
to ozone-...@chromium.org, James Cook, Erik Chen, Robert Kroeger, Antonio Gomes, Erik Chen, Chromium LUCI CQ, chromium...@chromium.org, Kalyan Kondapally

Attention is currently required from: Erik Chen, Antonio Gomes.

Patch set 3:Auto-Submit +1

View Change

2 comments:

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 3
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@google.com>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@google.com>
Gerrit-Attention: Antonio Gomes <toni...@igalia.com>
Gerrit-Comment-Date: Thu, 22 Apr 2021 20:15:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Antonio Gomes <toni...@igalia.com>
Gerrit-MessageType: comment

Nick Yamane (Gerrit)

unread,
Apr 22, 2021, 4:18:47 PM4/22/21
to ozone-...@chromium.org, James Cook, Erik Chen, Robert Kroeger, Antonio Gomes, Erik Chen, Chromium LUCI CQ, chromium...@chromium.org, Kalyan Kondapally

Attention is currently required from: Erik Chen, Antonio Gomes.

Nick Yamane removed a vote from this change.

View Change

Removed Auto-Submit+1 by Nick Yamane <nick...@igalia.com>

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 5
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@google.com>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@google.com>
Gerrit-Attention: Antonio Gomes <toni...@igalia.com>
Gerrit-MessageType: deleteVote

Antonio Gomes (Gerrit)

unread,
Apr 22, 2021, 4:34:54 PM4/22/21
to ozone-...@chromium.org, Henrique Ferreiro, Nick Yamane, Antonio Gomes, Erik Chen

Attention is currently required from: Erik Chen, Nick Yamane.

Nick Yamane has uploaded this change for review.

View Change

ozone/wayland: Ensure server-side cursor shapes are always used on lacros

Server-side cursor shapes support was first introduced at [1]. Though,
in the wl_pointer::enter event handler, it is not used, which leads to
empty cursor occasionally.

This CL fixes it by re-using the SetCursor method, which fully
implements cursor handling, including server-side ones.

R=toni...@igalia.com

[1] https://chromium-review.googlesource.com/c/chromium/src/+/2516972


Bug: 1199408
Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
---
M ui/ozone/platform/wayland/host/wayland_window.cc
1 file changed, 5 insertions(+), 17 deletions(-)

diff --git a/ui/ozone/platform/wayland/host/wayland_window.cc b/ui/ozone/platform/wayland/host/wayland_window.cc
index 391f3b6..35df5fb 100644
--- a/ui/ozone/platform/wayland/host/wayland_window.cc
+++ b/ui/ozone/platform/wayland/host/wayland_window.cc
@@ -160,23 +160,11 @@
void WaylandWindow::SetPointerFocus(bool focus) {
has_pointer_focus_ = focus;

- // Whenever the window gets the pointer focus back, we must reinitialize the
- // cursor. Otherwise, it is invalidated whenever the pointer leaves the
- // surface and is not restored by the Wayland compositor.
- if (has_pointer_focus_ && bitmap_ && bitmap_->type() != CursorType::kNone) {
- // Check for theme-provided cursor.
- if (bitmap_->platform_data()) {
- connection_->SetPlatformCursor(
- reinterpret_cast<wl_cursor*>(bitmap_->platform_data()),
- buffer_scale());
- } else {
- // Translate physical pixels to DIPs.
- gfx::Point hotspot_in_dips =
- gfx::ScaleToRoundedPoint(bitmap_->hotspot(), 1.0f / ui_scale_);
- connection_->SetCursorBitmap(bitmap_->bitmaps(), hotspot_in_dips,
- buffer_scale());
- }
- }
+ // Whenever the window gets the pointer focus back, the cursor shape must be
+ // updated. Otherwise, it is invalidated upon wl_pointer::leave and is not
+ // restored by the Wayland compositor.
+ if (has_pointer_focus_)
+ SetCursor(std::move(bitmap_));
}

bool WaylandWindow::StartDrag(const ui::OSExchangeData& data,

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 5
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@google.com>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@google.com>
Gerrit-Attention: Nick Yamane <nick...@igalia.com>
Gerrit-MessageType: newchange

Antonio Gomes (Gerrit)

unread,
Apr 22, 2021, 4:35:01 PM4/22/21
to Nick Yamane, ozone-...@chromium.org, Henrique Ferreiro, James Cook, Erik Chen, Robert Kroeger, Antonio Gomes, Erik Chen, Chromium LUCI CQ, chromium...@chromium.org, Kalyan Kondapally

Attention is currently required from: Erik Chen, Nick Yamane.

Patch set 5:Code-Review +1

View Change

1 comment:

  • Patchset:

    • Patch Set #1:

      I am not sure, but my guess is that it's "always" been there, since zcr_cursor_shapes support was fi […]

      Good point. I have not seen the bug until recently. Lets if james has an idea.

      /cc hferreiro, who worked on cursors a lot recently.

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 5
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@google.com>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@google.com>
Gerrit-Attention: Nick Yamane <nick...@igalia.com>
Gerrit-Comment-Date: Thu, 22 Apr 2021 20:34:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Nick Yamane <nick...@igalia.com>

Nick Yamane (Gerrit)

unread,
Apr 22, 2021, 5:18:13 PM4/22/21
to ozone-...@chromium.org, Henrique Ferreiro, James Cook, Erik Chen, Robert Kroeger, Antonio Gomes, Erik Chen, Chromium LUCI CQ, chromium...@chromium.org, Kalyan Kondapally

Attention is currently required from: Erik Chen, Nick Yamane.

Nick Yamane removed a vote from this change.

View Change

Removed Commit-Queue+2 by Nick Yamane <nick...@igalia.com>

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 5
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@google.com>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@google.com>
Gerrit-Attention: Nick Yamane <nick...@igalia.com>
Gerrit-MessageType: deleteVote

Nick Yamane (Gerrit)

unread,
Apr 22, 2021, 5:33:39 PM4/22/21
to ozone-...@chromium.org, Henrique Ferreiro, James Cook, Erik Chen, Robert Kroeger, Antonio Gomes, Erik Chen, Chromium LUCI CQ, chromium...@chromium.org, Kalyan Kondapally

Attention is currently required from: Erik Chen.

View Change

1 comment:

  • File ui/ozone/platform/wayland/host/wayland_window.cc:

    • Patch Set #1, Line 167: (

      is std::move appropriate here? That implies that bitmap_ has to be regenerated before each time this […]

      Good point.

      I used move here as a way to bypass the conditional in SetCursor (line 304), it is equivalent to, for example, SetCursor(std::exchange(bitmap_, nullptr)). And I agree that it's a bit unusual/counter-intutive. Alternatively, the code the uncoditionally set cursor shape could be extracted from SetCursor into a separate function, say SetCursorShape() and call it from here. PLMK what you guys prefer.

      >That implies that bitmap_ has to be regenerated before each time this line of code is called.

      bitmap is scoped_refptr, so move should be cheap. not sure if that's what you meant with "regenerated".

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 5
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@google.com>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@google.com>
Gerrit-Attention: Erik Chen <erik...@chromium.org>
Gerrit-Comment-Date: Thu, 22 Apr 2021 21:33:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Erik Chen <erik...@chromium.org>
Gerrit-MessageType: comment

Erik Chen (Gerrit)

unread,
Apr 22, 2021, 5:43:13 PM4/22/21
to Nick Yamane, ozone-...@chromium.org, Henrique Ferreiro, James Cook, Robert Kroeger, Antonio Gomes, Erik Chen, Chromium LUCI CQ, chromium...@chromium.org, Kalyan Kondapally

Attention is currently required from: Erik Chen, Nick Yamane.

View Change

1 comment:

  • File ui/ozone/platform/wayland/host/wayland_window.cc:

    • Good point. […]

      I don't undersatnd this code very well, but if you're trying to bypass the check: "if (bitmap_ == platform_cursor)"

      Then I would suggest adding a new parameter: bool force_update

      if (bitmap_ == platform_cursor && !force_update)
      return;
      ...

      That being said -- I'm not an owner of this class and I'm not familiar with this code, so I defer to actual owners.

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 5
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@google.com>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@google.com>
Gerrit-Attention: Nick Yamane <nick...@igalia.com>
Gerrit-Comment-Date: Thu, 22 Apr 2021 21:43:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nick Yamane <nick...@igalia.com>

Nick Yamane (Gerrit)

unread,
Apr 22, 2021, 6:49:08 PM4/22/21
to ozone-...@chromium.org, Henrique Ferreiro, James Cook, Erik Chen, Robert Kroeger, Antonio Gomes, Erik Chen, Chromium LUCI CQ, chromium...@chromium.org, Kalyan Kondapally

Attention is currently required from: Erik Chen.

View Change

1 comment:

  • File ui/ozone/platform/wayland/host/wayland_window.cc:

    • I don't undersatnd this code very well, but if you're trying to bypass the check: "if (bitmap_ == […]

      SetCursor() can't be changed cause it's part of PlatformWindow interface. That's why I mentioned extracting into a separate function.

      Done it in the latest PS. tonikitoo@ PTAL.

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 6
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@google.com>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Erik Chen <erik...@chromium.org>
Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@google.com>
Gerrit-Attention: Erik Chen <erik...@chromium.org>
Gerrit-Comment-Date: Thu, 22 Apr 2021 22:48:55 +0000

Erik Chen (Gerrit)

unread,
Apr 22, 2021, 6:53:50 PM4/22/21
to Nick Yamane, ozone-...@chromium.org, Henrique Ferreiro, James Cook, Robert Kroeger, Antonio Gomes, Erik Chen, Chromium LUCI CQ, chromium...@chromium.org, Kalyan Kondapally

Attention is currently required from: Erik Chen, Nick Yamane.

Patch set 6:Code-Review +1Commit-Queue +2

View Change

1 comment:

  • Patchset:

    • Patch Set #6:

      Looks much better, thanks. Please wait for owner re-review as appropriate -- I defer to your judgement.

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 6
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
Gerrit-Reviewer: Erik Chen <erik...@google.com>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@google.com>
Gerrit-Attention: Nick Yamane <nick...@igalia.com>
Gerrit-Comment-Date: Thu, 22 Apr 2021 22:53:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Nick Yamane (Gerrit)

unread,
Apr 22, 2021, 6:56:37 PM4/22/21
to ozone-...@chromium.org, Erik Chen, Henrique Ferreiro, James Cook, Robert Kroeger, Antonio Gomes, Erik Chen, Chromium LUCI CQ, chromium...@chromium.org, Kalyan Kondapally

Attention is currently required from: Erik Chen, Nick Yamane.

Nick Yamane removed a vote from this change.

View Change

Removed Commit-Queue+2 by Erik Chen <erik...@chromium.org>

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 6
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
Gerrit-Reviewer: Erik Chen <erik...@google.com>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@google.com>
Gerrit-Attention: Nick Yamane <nick...@igalia.com>
Gerrit-Attention: Erik Chen <erik...@chromium.org>
Gerrit-MessageType: deleteVote

Antonio Gomes (Gerrit)

unread,
Apr 22, 2021, 6:58:23 PM4/22/21
to Nick Yamane, ozone-...@chromium.org, Erik Chen, Henrique Ferreiro, James Cook, Robert Kroeger, Antonio Gomes, Erik Chen, Chromium LUCI CQ, chromium...@chromium.org, Kalyan Kondapally

Attention is currently required from: Erik Chen, Nick Yamane.

Patch set 6:Code-Review +1

View Change

2 comments:

    • This CL fixes it by re-using the SetCursor method, which fully
      implements cursor handling, including server-side ones.

    • maybe mentioning that the previous impl did not take `zcr-cursor-shapes` into account is relevant here.

  • Patchset:

    • Patch Set #6:

      Looks much better, thanks. […]

      +1

      it looks much better now

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 6
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
Gerrit-Reviewer: Erik Chen <erik...@google.com>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@google.com>
Gerrit-Attention: Nick Yamane <nick...@igalia.com>
Gerrit-Attention: Erik Chen <erik...@chromium.org>
Gerrit-Comment-Date: Thu, 22 Apr 2021 22:58:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

Nick Yamane (Gerrit)

unread,
Apr 22, 2021, 7:15:51 PM4/22/21
to Erik Chen, ozone-...@chromium.org, Erik Chen, Henrique Ferreiro, James Cook, Robert Kroeger, Antonio Gomes, Chromium LUCI CQ, chromium...@chromium.org, Kalyan Kondapally

Attention is currently required from: Erik Chen.

Nick Yamane removed Erik Chen from this change.

View Change

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 7
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@chromium.org>
Gerrit-MessageType: deleteReviewer

Nick Yamane (Gerrit)

unread,
Apr 22, 2021, 7:15:54 PM4/22/21
to ozone-...@chromium.org, Erik Chen, Henrique Ferreiro, James Cook, Robert Kroeger, Antonio Gomes, Erik Chen, Chromium LUCI CQ, chromium...@chromium.org, Kalyan Kondapally

Attention is currently required from: Erik Chen.

Patch set 7:Auto-Submit +1Commit-Queue +1

View Change

1 comment:

  • Commit Message:

    • Patch Set #6, Line 13:

      This CL fixes it by re-using the SetCursor method, which fully
      implements cursor handling, including server-side ones.

    • maybe mentioning that the previous impl did not take `zcr-cursor-shapes` into account is relevant he […]

      Done

To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
Gerrit-Change-Number: 2846448
Gerrit-PatchSet: 7
Gerrit-Owner: Nick Yamane <nick...@igalia.com>
Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
Gerrit-Reviewer: Erik Chen <erik...@google.com>
Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
Gerrit-CC: James Cook <jame...@chromium.org>
Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Erik Chen <erik...@chromium.org>
Gerrit-Comment-Date: Thu, 22 Apr 2021 23:15:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

Nick Yamane (Gerrit)

unread,
Apr 22, 2021, 8:12:49 PM4/22/21
to ozone-...@chromium.org, Erik Chen, Henrique Ferreiro, James Cook, Robert Kroeger, Antonio Gomes, Chromium LUCI CQ, chromium...@chromium.org, Kalyan Kondapally

Attention is currently required from: Erik Chen.

Patch set 7:Commit-Queue +2

View Change

    To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
    Gerrit-Change-Number: 2846448
    Gerrit-PatchSet: 7
    Gerrit-Owner: Nick Yamane <nick...@igalia.com>
    Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
    Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
    Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
    Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
    Gerrit-CC: James Cook <jame...@chromium.org>
    Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
    Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
    Gerrit-Attention: Erik Chen <erik...@chromium.org>
    Gerrit-Comment-Date: Fri, 23 Apr 2021 00:12:36 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Chromium LUCI CQ (Gerrit)

    unread,
    Apr 22, 2021, 8:15:54 PM4/22/21
    to Nick Yamane, ozone-...@chromium.org, Erik Chen, Henrique Ferreiro, James Cook, Robert Kroeger, Antonio Gomes, chromium...@chromium.org, Kalyan Kondapally

    Chromium LUCI CQ submitted this change.

    View Change

    Approvals: Erik Chen: Looks good to me Antonio Gomes: Looks good to me Nick Yamane: Commit; Send CL to CQ automatically after approval
    ozone/wayland: Ensure server-side cursor shapes are always used on lacros

    Server-side cursor shapes support was first introduced at [1]. Though,
    in the wl_pointer::enter event handler, it is not used, which leads to
    empty cursor occasionally.

    This CL fixes it by extracting the code that deals with cursor shape
    update, including zcr-cursor-shapes handling, out of SetCursor into a
    new function, namely UpdateCursorShape, and call it from SetPointFocus,
    if applicable.


    R=toni...@igalia.com

    [1] https://chromium-review.googlesource.com/c/chromium/src/+/2516972

    Bug: 1199408
    Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2846448
    Auto-Submit: Nick Yamane <nick...@igalia.com>
    Commit-Queue: Nick Yamane <nick...@igalia.com>
    Reviewed-by: Erik Chen <erik...@chromium.org>
    Reviewed-by: Antonio Gomes <toni...@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#875439}
    ---
    M ui/ozone/platform/wayland/host/wayland_window.cc
    M ui/ozone/platform/wayland/host/wayland_window.h
    2 files changed, 40 insertions(+), 46 deletions(-)


    6 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one.

    To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
    Gerrit-Change-Number: 2846448
    Gerrit-PatchSet: 8
    Gerrit-Owner: Nick Yamane <nick...@igalia.com>
    Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
    Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
    Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
    Gerrit-CC: James Cook <jame...@chromium.org>
    Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
    Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
    Gerrit-MessageType: merged

    James Cook (Gerrit)

    unread,
    Apr 26, 2021, 3:38:36 PM4/26/21
    to Nick Yamane, Chromium LUCI CQ, ozone-...@chromium.org, Erik Chen, Henrique Ferreiro, Robert Kroeger, Antonio Gomes, chromium...@chromium.org, Kalyan Kondapally

    Patch set 8:Code-Review +1

    View Change

    1 comment:

    • Patchset:

      • Patch Set #8:

        belated LGTM, I was on vacation last Thu/Fri.

        FYI - I suspect this bug has existed since I added server-side cursor support.

    To view, visit change 2846448. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I935f120dffccd9c8e4e5d962fb86290e914e00a4
    Gerrit-Change-Number: 2846448
    Gerrit-PatchSet: 8
    Gerrit-Owner: Nick Yamane <nick...@igalia.com>
    Gerrit-Reviewer: Antonio Gomes <toni...@igalia.com>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Erik Chen <erik...@chromium.org>
    Gerrit-Reviewer: James Cook <jame...@chromium.org>
    Gerrit-Reviewer: Nick Yamane <nick...@igalia.com>
    Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
    Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
    Gerrit-CC: Robert Kroeger <rjkr...@chromium.org>
    Gerrit-Comment-Date: Mon, 26 Apr 2021 19:38:26 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment
    Reply all
    Reply to author
    Forward
    0 new messages