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

Unified Diff: ash/drag_drop/drag_drop_tracker.cc

Issue 472373006: Change type of drag-drop window to popup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comment Created 6 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/drag_drop/drag_drop_tracker.cc
diff --git a/ash/drag_drop/drag_drop_tracker.cc b/ash/drag_drop/drag_drop_tracker.cc
index c1ec24441a29db955f0b3dd731c93cd26cf4df59..982fafa60052e840aee2ac323377338df3244351 100644
--- a/ash/drag_drop/drag_drop_tracker.cc
+++ b/ash/drag_drop/drag_drop_tracker.cc
@@ -42,7 +42,9 @@ aura::Window* CreateCaptureWindow(aura::Window* context_root,
if (!activation_delegate_instance)
activation_delegate_instance = new CaptureWindowActivationDelegate;
aura::Window* window = new aura::Window(delegate);
- window->SetType(ui::wm::WINDOW_TYPE_NORMAL);
+ // Set type of window as popup to prevent different window manager codes
+ // trying to manage this window.
+ window->SetType(ui::wm::WINDOW_TYPE_POPUP);
window->Init(aura::WINDOW_LAYER_NOT_DRAWN);
aura::client::ParentWindowWithContext(window, context_root, gfx::Rect());
aura::client::SetActivationDelegate(window, activation_delegate_instance);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698