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

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

Issue 749063003: Fix grabbing capture when the mouse is pressed on Desktop Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | ui/base/x/x11_util.cc » ('j') | ui/base/x/x11_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/x11_util.h
diff --git a/ui/base/x/x11_util.h b/ui/base/x/x11_util.h
index ffcf8461c75613fe43ba39aeec23b08db6c298ed..448d3257b9b86c519057e8d1505589da4f40ce03 100644
--- a/ui/base/x/x11_util.h
+++ b/ui/base/x/x11_util.h
@@ -45,6 +45,12 @@ namespace ui {
// Returns true if the system supports XINPUT2.
UI_BASE_EXPORT bool IsXInput2Available();
+// Grabs the pointer.
+UI_BASE_EXPORT int GrabPointer(XID window, bool owner_events, ::Cursor cursor);
+
+// Ungrabs the pointer.
+UI_BASE_EXPORT void UngrabPointer();
sadrul 2014/12/22 21:08:59 Would it be possible to have something like Scoped
+
// X shared memory comes in three flavors:
// 1) No SHM support,
// 2) SHM putimage,
« no previous file with comments | « no previous file | ui/base/x/x11_util.cc » ('j') | ui/base/x/x11_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698