summaryrefslogtreecommitdiffstats
path: root/chrome/common/x11_util.cc
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/common/x11_util.cc
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/common/x11_util.cc')
-rw-r--r--chrome/common/x11_util.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/common/x11_util.cc b/chrome/common/x11_util.cc
index 1905d2c..556b804 100644
--- a/chrome/common/x11_util.cc
+++ b/chrome/common/x11_util.cc
@@ -548,4 +548,20 @@ bool GetWindowParent(XID* parent_window, bool* parent_is_root, XID window) {
return true;
}
+bool GetWindowManagerName(std::string* wm_name) {
+ DCHECK(wm_name);
+ int wm_window = 0;
+ if (!x11_util::GetIntProperty(x11_util::GetX11RootWindow(),
+ "_NET_SUPPORTING_WM_CHECK",
+ &wm_window)) {
+ return false;
+ }
+ if (!x11_util::GetStringProperty(static_cast<XID>(wm_window),
+ "_NET_WM_NAME",
+ wm_name)) {
+ return false;
+ }
+ return true;
+}
+
} // namespace x11_util