Commit 95f4d036 authored by mohsen@chromium.org's avatar mohsen@chromium.org

Change type of drag-drop window to popup

Currently, the window for drag-drop is a normal window. This is not
right and cuases a few issues (e.g. see crbug.com/404634). This patch
changes the type to popup.

BUG=404634

Review URL: https://codereview.chromium.org/472373006

Cr-Commit-Position: refs/heads/master@{#290753}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290753 0039d316-1c4b-4281-b951-d872f2087c98
parent b23ef063
...@@ -42,7 +42,9 @@ aura::Window* CreateCaptureWindow(aura::Window* context_root, ...@@ -42,7 +42,9 @@ aura::Window* CreateCaptureWindow(aura::Window* context_root,
if (!activation_delegate_instance) if (!activation_delegate_instance)
activation_delegate_instance = new CaptureWindowActivationDelegate; activation_delegate_instance = new CaptureWindowActivationDelegate;
aura::Window* window = new aura::Window(delegate); 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); window->Init(aura::WINDOW_LAYER_NOT_DRAWN);
aura::client::ParentWindowWithContext(window, context_root, gfx::Rect()); aura::client::ParentWindowWithContext(window, context_root, gfx::Rect());
aura::client::SetActivationDelegate(window, activation_delegate_instance); aura::client::SetActivationDelegate(window, activation_delegate_instance);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment