Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Unified Diff: ui/base/x/x11_util.cc

Issue 291583003: Revert of Fix X11TopmostWindowFinder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/x/x11_util.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/x11_util.cc
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc
index 8560f1bb594b79dbcf6d23f205aeef34b2382ca8..5ab953437ed56a3010bf012ebc9c18f146ba2633 100644
--- a/ui/base/x/x11_util.cc
+++ b/ui/base/x/x11_util.cc
@@ -224,6 +224,14 @@
DISALLOW_COPY_AND_ASSIGN(XCustomCursorCache);
};
+bool IsShapeAvailable() {
+ int dummy;
+ static bool is_shape_available =
+ XShapeQueryExtension(gfx::GetXDisplay(), &dummy, &dummy);
+ return is_shape_available;
+
+}
+
} // namespace
bool IsXInput2Available() {
@@ -463,13 +471,6 @@
return invisible_cursor;
}
-bool IsShapeExtensionAvailable() {
- int dummy;
- static bool is_shape_available =
- XShapeQueryExtension(gfx::GetXDisplay(), &dummy, &dummy);
- return is_shape_available;
-}
-
XID GetX11RootWindow() {
return DefaultRootWindow(gfx::GetXDisplay());
}
@@ -578,7 +579,7 @@
if (!window_rect.Contains(screen_loc))
return false;
- if (!IsShapeExtensionAvailable())
+ if (!IsShapeAvailable())
return true;
// According to http://www.x.org/releases/X11R7.6/doc/libXext/shapelib.html,
« no previous file with comments | « ui/base/x/x11_util.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698