summaryrefslogtreecommitdiffstats
path: root/views/widget
diff options
context:
space:
mode:
authorjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-20 16:33:19 +0000
committerjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-20 16:33:19 +0000
commit19bdeb6127e16d6edb970b6892808de580fa935a (patch)
tree5fa723b9d7b868e2adfbfa37f2c84e57e6867c6b /views/widget
parente6b068613f8f7616ba88ced54f6d15cccb51879a (diff)
downloadchromium_src-19bdeb6127e16d6edb970b6892808de580fa935a.zip
chromium_src-19bdeb6127e16d6edb970b6892808de580fa935a.tar.gz
chromium_src-19bdeb6127e16d6edb970b6892808de580fa935a.tar.bz2
Use the WS_EX_NOACTIVATE flag for popup widgets. This is essentially a no-op for the views which are contained within Chrome, but for desktop notifications which are shown when other applications are active, this prevents clicking the notification from changing the active window.
BUG=47334 TEST=focus another application, close a notification. look for no flicker. Review URL: http://codereview.chromium.org/3029010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53050 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget')
-rw-r--r--views/widget/widget_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/widget/widget_win.cc b/views/widget/widget_win.cc
index 5948bfd..f11031c 100644
--- a/views/widget/widget_win.cc
+++ b/views/widget/widget_win.cc
@@ -1282,7 +1282,7 @@ Widget* Widget::CreatePopupWidget(TransparencyParam transparent,
DeleteParam delete_on_destroy,
MirroringParam mirror_in_rtl) {
WidgetWin* popup = new WidgetWin;
- DWORD ex_style = WS_EX_TOOLWINDOW;
+ DWORD ex_style = WS_EX_TOOLWINDOW | WS_EX_NOACTIVATE;
if (mirror_in_rtl == MirrorOriginInRTL)
ex_style |= l10n_util::GetExtendedTooltipStyles();
if (transparent == Transparent)