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

Unified Diff: ash/common/wm/drag_details.cc

Issue 2700523004: Remove docked windows entirely in M59. (Closed)
Patch Set: Rebase Created 3 years, 10 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/common/wm/drag_details.cc
diff --git a/ash/common/wm/drag_details.cc b/ash/common/wm/drag_details.cc
index 73815a41eff661689edb01ef949a23737c47f3a0..7682b4afba1c1570dfca0ccb02ac9d04063cd45b 100644
--- a/ash/common/wm/drag_details.cc
+++ b/ash/common/wm/drag_details.cc
@@ -68,8 +68,8 @@ DragDetails::DragDetails(WmWindow* window,
window->GetType() == ui::wm::WINDOW_TYPE_PANEL &&
window->GetBoolProperty(WmWindowProperty::PANEL_ATTACHED)) {
wm::WindowState* window_state = window->GetWindowState();
- if ((window_state->IsNormalOrSnapped() || window_state->IsDocked()) &&
- window_state->HasRestoreBounds() && window_component == HTCAPTION) {
+ if (window_state->IsNormalOrSnapped() && window_state->HasRestoreBounds() &&
+ window_component == HTCAPTION) {
restore_bounds = window_state->GetRestoreBoundsInScreen();
}
}

Powered by Google App Engine
This is Rietveld 408576698