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

Unified Diff: ui/aura/monitor_change_observer_x11.cc

Issue 10407081: Multiple dispatchers for root windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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/monitor_change_observer_x11.cc
diff --git a/ui/aura/monitor_change_observer_x11.cc b/ui/aura/monitor_change_observer_x11.cc
index 59a0ebe51bd2a0a57264aef05f85d7280d091a81..12703d328cd1323dbf690eea3694657c5da64f79 100644
--- a/ui/aura/monitor_change_observer_x11.cc
+++ b/ui/aura/monitor_change_observer_x11.cc
@@ -52,15 +52,13 @@ MonitorChangeObserverX11::MonitorChangeObserverX11()
XRRSelectInput(xdisplay_, x_root_window_, RRScreenChangeNotifyMask);
int error_base_ignored;
XRRQueryExtension(xdisplay_, &xrandr_event_base_, &error_base_ignored);
- static_cast<DispatcherLinux*>(
- Env::GetInstance()->GetDispatcher())->
- WindowDispatcherCreated(x_root_window_, this);
+ static_cast<DispatcherLinux*>(Env::GetInstance()->GetDispatcher())->
+ RegisterRootWindowDispatcher(this);
}
MonitorChangeObserverX11::~MonitorChangeObserverX11() {
- static_cast<DispatcherLinux*>(
- Env::GetInstance()->GetDispatcher())->
- WindowDispatcherDestroying(x_root_window_);
+ static_cast<DispatcherLinux*>(Env::GetInstance()->GetDispatcher())->
+ UnregisterRootWindowDispatcher(this);
}
bool MonitorChangeObserverX11::Dispatch(const base::NativeEvent& event) {

Powered by Google App Engine
This is Rietveld 408576698