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

Unified Diff: ui/aura/window_tree_host_x11.h

Issue 2319933002: X11: Remove calls to XSelectInput (Closed)
Patch Set: Change mask stuff in window_tree_host_x11, remove XSelectInput in ui/compositor, update dependent patch set 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/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();
sadrul 2016/09/08 00:09:19 Why do we want this?
Daniel Erat 2016/09/08 03:05:51 it looks like it's used by ash/display/mirror_wind
+
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_;

Powered by Google App Engine
This is Rietveld 408576698