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

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

Issue 2700433002: cros: Fix minimized snapped window may not restore to the snapped bounds (Closed)
Patch Set: TEST_P to TEST_F 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
« no previous file with comments | « no previous file | ash/wm/workspace_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/default_state.cc
diff --git a/ash/common/wm/default_state.cc b/ash/common/wm/default_state.cc
index 862355d7b0a61152a4a1fc3d27838f01c5388e02..8149d7f856fc21a1871835fbd425b90fb7595c3e 100644
--- a/ash/common/wm/default_state.cc
+++ b/ash/common/wm/default_state.cc
@@ -280,6 +280,11 @@ void DefaultState::OnWMEvent(WindowState* window_state, const WMEvent* event) {
return;
}
+ if (event->type() == WM_EVENT_SNAP_LEFT ||
+ event->type() == WM_EVENT_SNAP_RIGHT) {
+ window_state->set_bounds_changed_by_user(true);
+ }
+
EnterToNextState(window_state, next_state_type);
}
« no previous file with comments | « no previous file | ash/wm/workspace_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698