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

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

Issue 2319933002: X11: Remove calls to XSelectInput (Closed)
Patch Set: Comments Created 4 years, 3 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 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 c1eb5515ef88124b8657646d17060a5f8d7a5a6c..7ab2dfc8cdee21ef2b2159b902cce3c31b8b35a1 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
@@ -27,6 +27,7 @@ class Window;
namespace ui {
class MouseEvent;
class ScopedEventDispatcher;
+class XScopedEventSelector;
}
namespace views {
@@ -58,7 +59,7 @@ class X11WholeScreenMoveLoop : public X11MoveLoop,
void GrabEscKey();
// Creates an input-only window to be used during the drag.
- XID CreateDragInputWindow(XDisplay* display);
+ void CreateDragInputWindow(XDisplay* display);
// Dispatch mouse movement event to |delegate_| in a posted task.
void DispatchMouseMovement();
@@ -79,6 +80,9 @@ class X11WholeScreenMoveLoop : public X11MoveLoop,
// are set on this window.
XID grab_input_window_;
+ // Events selected on |grab_input_window_|.
+ std::unique_ptr<ui::XScopedEventSelector> grab_input_window_events_;
+
// Whether the pointer was grabbed on |grab_input_window_|.
bool grabbed_pointer_;
« no previous file with comments | « ui/views/widget/desktop_aura/x11_desktop_handler.cc ('k') | ui/views/widget/desktop_aura/x11_whole_screen_move_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698