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

Unified Diff: chrome/browser/ui/views/panels/panel_view.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix new addition Created 8 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: chrome/browser/ui/views/panels/panel_view.cc
diff --git a/chrome/browser/ui/views/panels/panel_view.cc b/chrome/browser/ui/views/panels/panel_view.cc
index df96938edc63032ea0b92db16a92cc1513c9a7cb..7e059d338d4407535580bf263f2ab19106947a3c 100644
--- a/chrome/browser/ui/views/panels/panel_view.cc
+++ b/chrome/browser/ui/views/panels/panel_view.cc
@@ -686,8 +686,8 @@ void PanelView::OnWidgetActivationChanged(views::Widget* widget, bool active) {
// When the user clicks on the minimized panel, the panel expansion will be
// done when we process the mouse button pressed message.
if (focused_ && panel_->IsMinimized() &&
- gfx::Screen::GetWindowAtCursorScreenPoint() !=
- widget->GetNativeWindow()) {
+ gfx::Screen::GetScreenFor(widget->GetNativeWindow())->
+ GetWindowAtCursorScreenPoint() != widget->GetNativeWindow()) {
panel_->Restore();
}
« no previous file with comments | « chrome/browser/ui/views/notifications/balloon_collection_views.cc ('k') | chrome/browser/ui/views/status_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698