summaryrefslogtreecommitdiffstats
path: root/ui/aura/root_window_host_x11.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/aura/root_window_host_x11.cc')
-rw-r--r--ui/aura/root_window_host_x11.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/aura/root_window_host_x11.cc b/ui/aura/root_window_host_x11.cc
index 858abbc..d0709cc 100644
--- a/ui/aura/root_window_host_x11.cc
+++ b/ui/aura/root_window_host_x11.cc
@@ -413,6 +413,9 @@ RootWindowHostX11::RootWindowHostX11(const gfx::Rect& bounds)
32,
PropModeReplace,
reinterpret_cast<unsigned char*>(&pid), 1);
+
+ XRRSelectInput(xdisplay_, x_root_window_,
+ RRScreenChangeNotifyMask | RROutputChangeNotifyMask);
Env::GetInstance()->AddObserver(this);
}