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

Unified Diff: ash/wm/window_util.cc

Issue 23431009: Windows docking should get triggered by pressing against the screen edge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows docking should get triggered by pressing against the screen edge (warn) Created 7 years, 3 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/wm/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index ca205e930f3366524e86e28bbbdb9879d7c3f11e..73b71d9628d306425fdbad708dc5c13e9b1f2cfd 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -77,6 +77,8 @@ bool CanResizeWindow(const aura::Window* window) {
bool CanSnapWindow(aura::Window* window) {
if (!CanResizeWindow(window))
return false;
+ if (window->type() == aura::client::WINDOW_TYPE_PANEL)
+ return false;
// If a window has a maximum size defined, snapping may make it too big.
return window->delegate() ? window->delegate()->GetMaximumSize().IsEmpty() :
true;

Powered by Google App Engine
This is Rietveld 408576698