Index: ui/views/widget/widget.cc |
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc |
index 1e9bd65f83cfa3ba2d609cfc710a848da2629309..469d4560cb06353f9ea949640ce58162ccc78318 100644 |
--- a/ui/views/widget/widget.cc |
+++ b/ui/views/widget/widget.cc |
@@ -73,7 +73,8 @@ class DefaultWidgetDelegate : public WidgetDelegate { |
DefaultWidgetDelegate(Widget* widget, const Widget::InitParams& params) |
: widget_(widget), |
can_activate_(!params.child && |
- params.type != Widget::InitParams::TYPE_POPUP) { |
+ params.type != Widget::InitParams::TYPE_POPUP && |
+ params.type != Widget::InitParams::TYPE_DRAG) { |
} |
virtual ~DefaultWidgetDelegate() {} |
@@ -141,8 +142,9 @@ Widget::InitParams::InitParams(Type type) |
ViewsDelegate::views_delegate->UseTransparentWindows()) ? |
TRANSLUCENT_WINDOW : INFER_OPACITY), |
accept_events(true), |
- can_activate(type != TYPE_POPUP && type != TYPE_MENU), |
- keep_on_top(type == TYPE_MENU), |
+ can_activate(type != TYPE_POPUP && type != TYPE_MENU && |
+ type != TYPE_DRAG), |
+ keep_on_top(type == TYPE_MENU || type == TYPE_DRAG), |
ownership(NATIVE_WIDGET_OWNS_WIDGET), |
mirror_origin_in_rtl(false), |
has_dropshadow(false), |