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

Unified Diff: ui/views/widget/desktop_aura/x11_whole_screen_move_loop.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
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 6bedfd81e31be6a8b4f4ed0edb30c78cc7e648a0..35f5d4f9cfa7fac62677074fc0b67746536e28a8 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