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

Unified Diff: ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h

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 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/views/widget/desktop_aura/x11_whole_screen_move_loop.h
diff --git a/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h b/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h
index 742d5f45169c4af7a384fefc8e43705d83071dc2..d5461ff7c93c35533415e002354060bf6ee57524 100644
--- a/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h
+++ b/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h
@@ -43,14 +43,14 @@ class X11WholeScreenMoveLoop : public X11MoveLoop,
uint32_t DispatchEvent(const ui::PlatformEvent& event) override;
// X11MoveLoop:
- bool RunMoveLoop(aura::Window* window, gfx::NativeCursor cursor) override;
+ bool RunMoveLoop(aura::Window* window) override;
void UpdateCursor(gfx::NativeCursor cursor) override;
void EndMoveLoop() override;
private:
// Grabs the pointer, setting the mouse cursor to |cursor|. Returns true if
// successful.
- bool GrabPointer(gfx::NativeCursor cursor);
+ bool GrabPointer();
void GrabEscKey();
@@ -66,10 +66,6 @@ class X11WholeScreenMoveLoop : public X11MoveLoop,
bool in_move_loop_;
scoped_ptr<ui::ScopedEventDispatcher> nested_dispatcher_;
- // Cursor in use prior to the move loop starting. Restored when the move loop
- // quits.
- gfx::NativeCursor initial_cursor_;
-
bool should_reset_mouse_flags_;
// An invisible InputOnly window. Keyboard grab and sometimes mouse grab

Powered by Google App Engine
This is Rietveld 408576698