summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-30 18:34:37 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-30 18:34:37 +0000
commite56d9c18bb1c2fb8ccde16654c6563a2174c3f34 (patch)
treec9780093e7e918ed35b96054a5f35e591fa85330 /chrome/browser/gtk
parent172c5599ed8ef6fb4dd6eb6e77decfe0aee6d9e0 (diff)
downloadchromium_src-e56d9c18bb1c2fb8ccde16654c6563a2174c3f34.zip
chromium_src-e56d9c18bb1c2fb8ccde16654c6563a2174c3f34.tar.gz
chromium_src-e56d9c18bb1c2fb8ccde16654c6563a2174c3f34.tar.bz2
Draw the normal window's frame in maximized mode. See BUG for more detail. Dan will investigate further when he has time.
BUG=28580, 727 (chromeos) TEST=None Review URL: http://codereview.chromium.org/436039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33302 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r--chrome/browser/gtk/browser_window_gtk.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index 601bd20..3339ad8 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -2336,19 +2336,9 @@ void BrowserWindowGtk::PlaceBookmarkBar(bool is_floating) {
// static
bool BrowserWindowGtk::GetCustomFramePrefDefault() {
- int wm_window = 0;
- if (!x11_util::GetIntProperty(x11_util::GetX11RootWindow(),
- "_NET_SUPPORTING_WM_CHECK",
- &wm_window)) {
- return false;
- }
-
std::string wm_name;
- if (!x11_util::GetStringProperty(static_cast<XID>(wm_window),
- "_NET_WM_NAME",
- &wm_name)) {
+ if (!x11_util::GetWindowManagerName(&wm_name))
return false;
- }
// Ideally, we'd use the custom frame by default and just fall back on using
// system decorations for the few (?) tiling window managers where the custom