|
|
Chromium Code Reviews
DescriptionDo not notify Wayland clients about activation which came from them.
If a task is moved to front on Android side, it will send an activation
request to Wayland server, which will activate the window on Chrome
side. This would formerly notify Wayland client (Android) about the
window activation. If the window no longer had focus on Android side,
we'd refocus it unintentionally.
Now if the activation is originally invoked from Android side, we'll
not call the callback.
TEST=CTS passes without flakyness.
BUG=b/34722452
Review-Url: https://codereview.chromium.org/2825923002
Cr-Commit-Position: refs/heads/master@{#465885}
Committed: https://chromium.googlesource.com/chromium/src/+/684e394da09c25aec471f4468211513244131235
Patch Set 1 #Patch Set 2 : Cleanup. #Patch Set 3 : And another one. #Patch Set 4 : Move out from shell_surface. #
Total comments: 4
Patch Set 5 : Cleanup. #Messages
Total messages: 24 (18 generated)
The CQ bit was checked by mtomasz@chromium.org to run a CQ dry run
Description was changed from ========== Do not notify Wayland clients about activation which came from them. If a task is moved to front on Android side, it will send an activation request to Wayland server, which will activate the window on Chrome side. This would formerly notify Wayland client (Android) about the window activation. If the window no longer had focus on Android side, we'd refocus it unintentionally. Now if the activation is originally invoked from Android side, we'll not call the callback. TEST=CTS passes without flakyness. BUG=b/34722452 ========== to ========== Do not notify Wayland clients about activation which came from them. If a task is moved to front on Android side, it will send an activation request to Wayland server, which will activate the window on Chrome side. This would formerly notify Wayland client (Android) about the window activation. If the window no longer had focus on Android side, we'd refocus it unintentionally. Now if the activation is originally invoked from Android side, we'll not call the callback. TEST=CTS passes without flakyness. BUG=b/34722452 ==========
mtomasz@chromium.org changed reviewers: + reveman@chromium.org
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
@reveman: PTAL. Oshima@ suggested to do this only for ShellSurfaces having BoundsMode CLIENT to limit to ARC client only. Do any other clients than ARC use or plan to use zcr_remote_surface_activate?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by mtomasz@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CTS is still flaky. Looking at it.
lgtm + nits https://codereview.chromium.org/2825923002/diff/60001/components/exo/wayland/... File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2825923002/diff/60001/components/exo/wayland/... components/exo/wayland/server.cc:163: DEFINE_UI_CLASS_PROPERTY_KEY(bool, kIsActivatingFromClient, false); nit: maybe s/kIsActivatingFromClient/kIgnoreWindowActivated/ so the explanation of this can be limited to remote_surface_activate code https://codereview.chromium.org/2825923002/diff/60001/components/exo/wayland/... components/exo/wayland/server.cc:1940: window->SetProperty(kIsActivatingFromClient, false); nit: use ClearProperty
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2825923002/diff/60001/components/exo/wayland/... File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2825923002/diff/60001/components/exo/wayland/... components/exo/wayland/server.cc:163: DEFINE_UI_CLASS_PROPERTY_KEY(bool, kIsActivatingFromClient, false); On 2017/04/19 04:14:13, reveman wrote: > nit: maybe s/kIsActivatingFromClient/kIgnoreWindowActivated/ so the explanation > of this can be limited to remote_surface_activate code Done. https://codereview.chromium.org/2825923002/diff/60001/components/exo/wayland/... components/exo/wayland/server.cc:1940: window->SetProperty(kIsActivatingFromClient, false); On 2017/04/19 04:14:13, reveman wrote: > nit: use ClearProperty Done.
The CQ bit was checked by mtomasz@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by mtomasz@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from reveman@chromium.org Link to the patchset: https://codereview.chromium.org/2825923002/#ps80001 (title: "Cleanup.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 80001, "attempt_start_ts": 1492658096451660,
"parent_rev": "81544b287da1e33806ac095b86a15d717ebfe27c", "commit_rev":
"684e394da09c25aec471f4468211513244131235"}
Message was sent while issue was closed.
Description was changed from ========== Do not notify Wayland clients about activation which came from them. If a task is moved to front on Android side, it will send an activation request to Wayland server, which will activate the window on Chrome side. This would formerly notify Wayland client (Android) about the window activation. If the window no longer had focus on Android side, we'd refocus it unintentionally. Now if the activation is originally invoked from Android side, we'll not call the callback. TEST=CTS passes without flakyness. BUG=b/34722452 ========== to ========== Do not notify Wayland clients about activation which came from them. If a task is moved to front on Android side, it will send an activation request to Wayland server, which will activate the window on Chrome side. This would formerly notify Wayland client (Android) about the window activation. If the window no longer had focus on Android side, we'd refocus it unintentionally. Now if the activation is originally invoked from Android side, we'll not call the callback. TEST=CTS passes without flakyness. BUG=b/34722452 Review-Url: https://codereview.chromium.org/2825923002 Cr-Commit-Position: refs/heads/master@{#465885} Committed: https://chromium.googlesource.com/chromium/src/+/684e394da09c25aec471f4468211... ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/684e394da09c25aec471f4468211... |
