summaryrefslogtreecommitdiffstats
path: root/ui/base/x
diff options
context:
space:
mode:
authorhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-26 04:14:21 +0000
committerhbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-26 04:14:21 +0000
commit6999fd893401c26e6dca64e471231aa456cef55c (patch)
treeae39bda5bd674d32112bfff3ecf331aa034e3b2a /ui/base/x
parent93e7901867cfa9264d743b891027ab1a48ed4547 (diff)
downloadchromium_src-6999fd893401c26e6dca64e471231aa456cef55c.zip
chromium_src-6999fd893401c26e6dca64e471231aa456cef55c.tar.gz
chromium_src-6999fd893401c26e6dca64e471231aa456cef55c.tar.bz2
A blind fix for Bug 70870
It seems r72539 <http://crrev.com/72539> changed ui::GetXWindowStack() so it returns false if XGetWindowProperty() returns 0 (Success). This change just compares the return value of XGetWindowProperty() with Success as the function did before r72539. BUG=70870 TEST=make the "Linux Tests (valgrind)(1)" bot green. Review URL: http://codereview.chromium.org/6350017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72608 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/x')
-rw-r--r--ui/base/x/x11_util.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc
index fda637c..56e53f9 100644
--- a/ui/base/x/x11_util.cc
+++ b/ui/base/x/x11_util.cc
@@ -441,13 +441,13 @@ bool GetXWindowStack(Window window, std::vector<XID>* windows) {
int format;
unsigned long count;
unsigned char *data = NULL;
- if (!GetProperty(window,
- "_NET_CLIENT_LIST_STACKING",
- ~0L,
- &type,
- &format,
- &count,
- &data)) {
+ if (GetProperty(window,
+ "_NET_CLIENT_LIST_STACKING",
+ ~0L,
+ &type,
+ &format,
+ &count,
+ &data) != Success) {
return false;
}