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

Side by Side Diff: ui/views/widget/desktop_aura/x11_pointer_grab.cc

Issue 821803002: Use XGrabPointer instead of XChangeActivatePointerGrab() to change the cursor during a pointer grab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_capture
Patch Set: Created 5 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/views/widget/desktop_aura/x11_pointer_grab.h"
6
7 #include <X11/Xlib.h>
8
9 namespace views {
10
11 int GrabPointer(XID window, bool owner_events, ::Cursor cursor) {
12 int event_mask = PointerMotionMask | ButtonReleaseMask | ButtonPressMask;
13 return XGrabPointer(gfx::GetXDisplay(), window, owner_events, event_mask,
14 GrabModeAsync, GrabModeAsync, None, cursor, CurrentTime);
15 }
16
17 void UngrabPointer() {
18 XUngrabPointer(gfx::GetXDisplay(), CurrentTime);
19 }
20
21 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698