New issue
Advanced search Search tips

Issue 891376 link

Starred by 3 users

Issue metadata

Status: Verified
Owner:
Closed: Oct 5
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 1
Type: Bug



Sign in to add a comment

Keyboard shortcuts stop working after window minimization

Project Member Reported by s...@chromium.org, Oct 2

Issue description

Chrome Version: 70.0.3538.35 (Official Build) beta (64-bit)
OS: Linux

What steps will reproduce the problem?
(1) Open Chrome, 2 separate windows, for different profiles. (Not sure if this is required)
(2) Minimize one of the windows.
(3) Maximize that same window, notice keyboard shortcuts stop working.
(4) Closing the profile's window (or restarting Chrome) both fix this, until the window is minimized again.

What is the expected result?
All keyboard shortcuts still work.

What happens instead?
Shortcuts that affect Chrome stop working, like ctrl+1, alt+left arrow, ctrl+pg up, ctrl+tab. Things in the content area like ctrl+a to select text, or k/j to navigate through gmail emails still work.
 
Labels: Hotlist-DesktopUIConsider
2 profiles/windows are not needed.

ctrl- shortcuts immediately break after clicking the minimize button on the Chrome window, whether or not Chrome is maximized (tested: xfwm4 on Debian 9.5).

This doesn't repro when clicking a taskbar button to hide/show Chrome.

The minimize button breaks more than just the keyboard shortcuts: Chrome is also no longer able to maximize properly after being moved.

Still repros on 70.0.3538.45 
Labels: Group-Hotkeys
Owner: thomasanderson@chromium.org
Status: Assigned (was: Untriaged)
thomasanderson@: Can you take a quick look here to see what's up?
E-mail was disabled, resending:

thomasanderson@: Can you take a quick look here to see what's up? Thanks!
Labels: -Pri-3 Pri-1
Status: Started (was: Assigned)
Bisected to https://chromium.googlesource.com/chromium/src/+/02370c73936726c387f74cfbd5796f1667ae8a65
Project Member

Comment 8 by bugdroid1@chromium.org, Oct 5

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5eb95eb3b3b001d8479b811a3280dbb0e36a3998

commit 5eb95eb3b3b001d8479b811a3280dbb0e36a3998
Author: Tom Anderson <thomasanderson@chromium.org>
Date: Fri Oct 05 17:36:10 2018

X11: Make sure a window IsVisible() after it's unminimized

This CL fixes a bug after [1].  The issue was setting "window_mapped_in_client_
= false" after XIconfiyWindow().  Despite the ICCCM spec requiring the state
transition "Iconic -> Normal - The client should map the window" [2], the window
is not actually placed in an unmapped state.  Instead, the _NET_WM_STATE_HIDDEN
property is set.

[1] https://chromium.googlesource.com/chromium/src/+/02370c73936726c387f74cfbd5796f1667ae8a65
[2] ftp://www.x.org/pub/current/doc/xorg-docs/icccm/icccm.html

BUG= 891376 
R=sky

Change-Id: Ibfcc66a54249bad8926d23cd4eabf1e6979f7d07
Reviewed-on: https://chromium-review.googlesource.com/c/1263431
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#597186}
[modify] https://crrev.com/5eb95eb3b3b001d8479b811a3280dbb0e36a3998/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc

Labels: Merge-Request-70
Status: Fixed (was: Started)
Labels: ReleaseBlock-Stable
Project Member

Comment 11 by sheriffbot@chromium.org, Oct 5

Labels: -Merge-Request-70 Merge-Review-70 Hotlist-Merge-Review
This bug requires manual review: We are only 10 days from stable.
Please contact the milestone owner if you have questions.
Owners: benmason@(Android), kariahda@(iOS), geohsu@(ChromeOS), abdulsyed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Have you confirmed this locally?
On a ToT build, yes.
Labels: -Merge-Review-70 Merge-Approved-70
Labels: -Merge-Approved-70 Merge-Merged-70-3538
The following revision refers to this bug: 
https://chromium.googlesource.com/chromium/src.git/+/483e3d23569078015ae70de476a4fe1a115df51c

Commit: 483e3d23569078015ae70de476a4fe1a115df51c
Author: thomasanderson@chromium.org
Commiter: thomasanderson@chromium.org
Date: 2018-10-08 16:57:54 +0000 UTC

[Merge to M70] X11: Make sure a window IsVisible() after it's unminimized

> This CL fixes a bug after [1].  The issue was setting "window_mapped_in_client_
> = false" after XIconfiyWindow().  Despite the ICCCM spec requiring the state
> transition "Iconic -> Normal - The client should map the window" [2], the window
> is not actually placed in an unmapped state.  Instead, the _NET_WM_STATE_HIDDEN
> property is set.
>
> [1] https://chromium.googlesource.com/chromium/src/+/02370c73936726c387f74cfbd5796f1667ae8a65
> [2] ftp://www.x.org/pub/current/doc/xorg-docs/icccm/icccm.html
>
> BUG= 891376 
> R=sky
>
> Change-Id: Ibfcc66a54249bad8926d23cd4eabf1e6979f7d07
> Reviewed-on: https://chromium-review.googlesource.com/c/1263431
> Reviewed-by: Scott Violet <sky@chromium.org>
> Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#597186}

BUG= 891376 
TBR=sky
NOTRY=true
NOPRESUBMIT=true
NOTREECHECKS=true

Change-Id: I38cbb9fda36b72aba21155f47a2723713856bb85
Reviewed-on: https://chromium-review.googlesource.com/c/1268660
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/branch-heads/3538@{#892}
Cr-Branched-From: 79f7c91a2b2a2932cd447fa6f865cb6662fa8fa6-refs/heads/master@{#587811}
Project Member

Comment 16 by bugdroid1@chromium.org, Oct 8

Labels: merge-merged-3538
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/483e3d23569078015ae70de476a4fe1a115df51c

commit 483e3d23569078015ae70de476a4fe1a115df51c
Author: Tom Anderson <thomasanderson@chromium.org>
Date: Mon Oct 08 16:57:54 2018

[Merge to M70] X11: Make sure a window IsVisible() after it's unminimized

> This CL fixes a bug after [1].  The issue was setting "window_mapped_in_client_
> = false" after XIconfiyWindow().  Despite the ICCCM spec requiring the state
> transition "Iconic -> Normal - The client should map the window" [2], the window
> is not actually placed in an unmapped state.  Instead, the _NET_WM_STATE_HIDDEN
> property is set.
>
> [1] https://chromium.googlesource.com/chromium/src/+/02370c73936726c387f74cfbd5796f1667ae8a65
> [2] ftp://www.x.org/pub/current/doc/xorg-docs/icccm/icccm.html
>
> BUG= 891376 
> R=sky
>
> Change-Id: Ibfcc66a54249bad8926d23cd4eabf1e6979f7d07
> Reviewed-on: https://chromium-review.googlesource.com/c/1263431
> Reviewed-by: Scott Violet <sky@chromium.org>
> Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#597186}

BUG= 891376 
TBR=sky
NOTRY=true
NOPRESUBMIT=true
NOTREECHECKS=true

Change-Id: I38cbb9fda36b72aba21155f47a2723713856bb85
Reviewed-on: https://chromium-review.googlesource.com/c/1268660
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/branch-heads/3538@{#892}
Cr-Branched-From: 79f7c91a2b2a2932cd447fa6f865cb6662fa8fa6-refs/heads/master@{#587811}
[modify] https://crrev.com/483e3d23569078015ae70de476a4fe1a115df51c/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc

Labels: Needs-Feedback
Tried verifying the fix on build without fix #70.0.3538.35 and build with fix #70.0.3538.54 on Ubuntu 14.04 by following steps as per comment #0, but unable to observe the difference between the both builds. 
Note:Tried with different profiles and same profile. 
Attached the screencast for reference.
thomasanderson@@ - Could you please help in verifying the fix.

Thanks..!
891376.ogv
5.7 MB View Download
891376 (1).ogv
4.3 MB View Download
Status: Verified (was: Fixed)
Verified on 70.0.3538.54
shortcut_after_minimize_bad.mp4
789 KB View Download
shortcut_after_minimize_good.mp4
403 KB View Download

Sign in to add a comment