diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 00:19:49 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 00:19:49 +0000 |
commit | 7bd1ff432a91f8075325f1a24da57811ca804d2c (patch) | |
tree | f7e8ead06738c4453f389b16a56bfd15dedb6bfc /chrome/browser/views | |
parent | ba9805657a5dc3c73cf9d41f08b653c7e8397cae (diff) | |
download | chromium_src-7bd1ff432a91f8075325f1a24da57811ca804d2c.zip chromium_src-7bd1ff432a91f8075325f1a24da57811ca804d2c.tar.gz chromium_src-7bd1ff432a91f8075325f1a24da57811ca804d2c.tar.bz2 |
Make sure the browser window is visible, even if the startup info says that it should be hidden. This fixes the problem of invisible browser window when launched from bash.
http://crbug.com/4438
Review URL: http://codereview.chromium.org/11454
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5652 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r-- | chrome/browser/views/frame/browser_view.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc index 01ff721..df2bea1 100644 --- a/chrome/browser/views/frame/browser_view.cc +++ b/chrome/browser/views/frame/browser_view.cc @@ -143,7 +143,9 @@ int BrowserView::GetShowState() const { si.cb = sizeof(si); si.dwFlags = STARTF_USESHOWWINDOW; GetStartupInfo(&si); - return si.wShowWindow; + // When launched from bash, for some reason si.wShowWindow is set to SW_HIDE, + // so we need to correct that condition. + return si.wShowWindow == SW_HIDE ? SW_SHOWNORMAL : si.wShowWindow; } void BrowserView::WindowMoved() { |