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

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

Issue 268673017: 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 5ab953437ed56a3010bf012ebc9c18f146ba2633..8560f1bb594b79dbcf6d23f205aeef34b2382ca8 100644
--- a/ui/base/x/x11_util.cc
+++ b/ui/base/x/x11_util.cc
@@ -224,14 +224,6 @@ class XCustomCursorCache {
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() {
@@ -471,6 +463,13 @@ void HideHostCursor() {
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());
}
@@ -579,7 +578,7 @@ bool WindowContainsPoint(XID window, gfx::Point screen_loc) {
if (!window_rect.Contains(screen_loc))
return false;
- if (!IsShapeAvailable())
+ if (!IsShapeExtensionAvailable())
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