capture_mode: Fix crash with clicking capture label in window mode.
On clicking, capture mode session will end and we try to snap a deleted window. This CL ignores the capture label window so that the window finder algorithm can find the next top window. That next top window will be the snapped window instead and will persist when capture session gets destroyed. This can happen to any capture session widget/window, but only the capture label is visible or created during window mode. Fixed: 1152938 Test: ash_unittests CaptureModeTest.TabletTouchCaptureLabelWidgetWindowMode Change-Id: I6fe8c2fea34c4738ef41dbafca2609b0b6913589 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2566450 Commit-Queue: Sammie Quon <sammiequon@chromium.org> Reviewed-by:Ahmed Fakhry <afakhry@chromium.org> Cr-Commit-Position: refs/heads/master@{#832197}
Showing
Please register or sign in to comment