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

Unified Diff: ui/views/widget/desktop_aura/desktop_screen_x11.cc

Issue 37733003: Make GetRootWindow() return a Window instead of a RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 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/desktop_screen_x11.cc
diff --git a/ui/views/widget/desktop_aura/desktop_screen_x11.cc b/ui/views/widget/desktop_aura/desktop_screen_x11.cc
index 9358875895ac0bd2f1aadb30c27df4f1fd018773..8d8bd02ee8311ee6be0c50efcaf369ed7d1c4651 100644
--- a/ui/views/widget/desktop_aura/desktop_screen_x11.cc
+++ b/ui/views/widget/desktop_aura/desktop_screen_x11.cc
@@ -187,10 +187,10 @@ gfx::Display DesktopScreenX11::GetDisplayNearestWindow(
// create the aura::RootWindow. So we ask what the DRWHX11 believes the
// window bounds are instead of going through the aura::Window's screen
// bounds.
- aura::RootWindow* root_window = window->GetRootWindow();
- if (root_window) {
+ aura::WindowEventDispatcher* dispatcher = window->GetDispatcher();
+ if (dispatcher) {
DesktopRootWindowHostX11* rwh = DesktopRootWindowHostX11::GetHostForXID(
- root_window->GetAcceleratedWidget());
+ dispatcher->GetAcceleratedWidget());
if (rwh)
return GetDisplayMatching(rwh->GetX11RootWindowBounds());
}
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_screen_win.cc ('k') | ui/views/widget/desktop_aura/x11_desktop_window_move_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698