Skip to content

Commit

Permalink
bento_button: Suspend shelf auto hide when desk button is hovered wit…
Browse files Browse the repository at this point in the history
…h fullscreen window

This makes sure to suspend shelf auto hide when desk button is hovered
with fullscreen window.

Bug: b/296105594
Test: Manual
Change-Id: I6fc5e59f63961aa6747e204f9a3436948195fb38
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4824418
Reviewed-by: Sammie Quon <sammiequon@chromium.org>
Commit-Queue: Yongshun Liu <yongshun@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1190343}
  • Loading branch information
Yongshun Liu authored and Chromium LUCI CQ committed Aug 30, 2023
1 parent febdf7d commit 9fda954
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ash/wm/desks/desk_button/desk_button.cc
Original file line number Diff line number Diff line change
Expand Up @@ -504,12 +504,6 @@ void DeskButton::MaybeUpdateDeskSwitchButtonVisibility(
void DeskButton::UpdateShelfAutoHideDisabler(
absl::optional<Shelf::ScopedDisableAutoHide>& disabler,
bool should_enable_shelf_auto_hide) {
// If shelf is not set to always hide, no need to disable.
if (desk_button_widget_->shelf()->auto_hide_behavior() !=
ShelfAutoHideBehavior::kAlways) {
return;
}

if (should_enable_shelf_auto_hide) {
disabler.reset();
} else {
Expand Down

0 comments on commit 9fda954

Please sign in to comment.