summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-18 23:53:45 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-18 23:53:45 +0000
commit01567506fc496f7df9393b68b001cb3d1270532e (patch)
tree4dae0d2461d020064377858b549918cef1435901 /chrome/browser
parent84d4ceeee6546783aff920ba0625c0ce01f624ef (diff)
downloadchromium_src-01567506fc496f7df9393b68b001cb3d1270532e.zip
chromium_src-01567506fc496f7df9393b68b001cb3d1270532e.tar.gz
chromium_src-01567506fc496f7df9393b68b001cb3d1270532e.tar.bz2
Fix a bug where the window would not be shaped properly when
dragging a new tab out. It would sometimes not be shaped properly when opening a new window. The code to update the window frame looks to see if the window is maximized. state_ contains information as to whether or not we're maximized, but it wasn't set yet resulting in a UMR. Review URL: http://codereview.chromium.org/131079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18773 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/gtk/browser_window_gtk.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index 041bc73..5b79c25 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -381,6 +381,7 @@ BrowserWindowGtk::BrowserWindowGtk(Browser* browser)
// We have to realize the window before we try to apply a window shape mask.
gtk_widget_realize(GTK_WIDGET(window_));
+ state_ = gdk_window_get_state(GTK_WIDGET(window_)->window);
// Note that calling this the first time is necessary to get the
// proper control layout.
UpdateCustomFrame();