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

Unified Diff: ui/events/devices/x11/device_data_manager_x11.cc

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
Index: ui/events/devices/x11/device_data_manager_x11.cc
diff --git a/ui/events/devices/x11/device_data_manager_x11.cc b/ui/events/devices/x11/device_data_manager_x11.cc
index 9db81c19c7e88216cf14fb16fceda7c504ddc259..db148e5e7be74dee038784784759514fce3438df 100644
--- a/ui/events/devices/x11/device_data_manager_x11.cc
+++ b/ui/events/devices/x11/device_data_manager_x11.cc
@@ -230,6 +230,13 @@ void DeviceDataManagerX11::UpdateDeviceList(Display* display) {
for (int data_type = 0; data_type < DT_LAST_ENTRY; ++data_type)
atoms[data_type] = atom_cache_.GetAtom(kCachedAtoms[data_type]);
+ // Find all of the master pointers.
+ for (int i = 0; i < info_list.count; ++i) {
+ XIDeviceInfo* info = info_list.devices + i;
+ if (info->use == XIMasterPointer)
+ master_pointers_.push_back(info->deviceid);
+ }
+
for (int i = 0; i < info_list.count; ++i) {
XIDeviceInfo* info = info_list.devices + i;

Powered by Google App Engine
This is Rietveld 408576698