Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: ash/system/status_area_widget.cc

Issue 2825383003: Fix stylus tools palette. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/system/status_area_widget.cc
diff --git a/ash/system/status_area_widget.cc b/ash/system/status_area_widget.cc
index b78677fe62edfb98e89ca8e8be5a97e64cb97f41..f8dfb81b2641b04c3260c4425043eeb8cde8d870 100644
--- a/ash/system/status_area_widget.cc
+++ b/ash/system/status_area_widget.cc
@@ -215,7 +215,9 @@ void StatusAreaWidget::AddPaletteTray() {
// Create the palette only on the internal display, where the stylus is
// available. We also create a palette on every display if requested from the
// command line.
- if (display.IsInternal() || palette_utils::IsPaletteEnabledOnEveryDisplay()) {
+ if (palette_utils::HasStylusInput() &&
+ (display.IsInternal() ||
+ palette_utils::IsPaletteEnabledOnEveryDisplay())) {
palette_tray_ = new PaletteTray(wm_shelf_);
status_area_widget_delegate_->AddTray(palette_tray_);
}

Powered by Google App Engine
This is Rietveld 408576698