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

Unified Diff: ui/aura/window_tree_host_x11.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
« no previous file with comments | « ash/display/mirror_window_controller.cc ('k') | ui/aura/window_tree_host_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host_x11.h
diff --git a/ui/aura/window_tree_host_x11.h b/ui/aura/window_tree_host_x11.h
index f209e10bdba49a8d8800cd4f028d60a4871707ad..8ae70d5614ffe90e04f12d0e4a5428deab18d3da 100644
--- a/ui/aura/window_tree_host_x11.h
+++ b/ui/aura/window_tree_host_x11.h
@@ -24,6 +24,7 @@ typedef XID Window;
namespace ui {
class MouseEvent;
+class XScopedEventSelector;
}
namespace aura {
@@ -52,6 +53,9 @@ class AURA_EXPORT WindowTreeHostX11 : public WindowTreeHost,
void MoveCursorToNative(const gfx::Point& location) override;
void OnCursorVisibilityChangedNative(bool show) override;
+ // Deselects mouse and keyboard events on |xwindow_|.
+ void DisableInput();
+
protected:
// Called when X Configure Notify event is recevied.
virtual void OnConfigureNotify();
@@ -79,6 +83,9 @@ class AURA_EXPORT WindowTreeHostX11 : public WindowTreeHost,
XDisplay* xdisplay_;
::Window xwindow_;
+ // Events selected on |xwindow_|.
+ std::unique_ptr<ui::XScopedEventSelector> xwindow_events_;
+
// The native root window.
::Window x_root_window_;
« no previous file with comments | « ash/display/mirror_window_controller.cc ('k') | ui/aura/window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698