diff options
| author | Brandon Schaefer <brandon.schaefer@canonical.com> | 2012-09-10 22:46:31 -0400 |
|---|---|---|
| committer | Tarmac <> | 2012-09-10 22:46:31 -0400 |
| commit | ed79fef1d0657c8fe8c9b5e4e8d2654f5a4a6397 (patch) | |
| tree | 218c4a5bd318a03688ef385307cf0500a30f1486 | |
| parent | ef31404667c2512eb88c85324e43f0dc4d425549 (diff) | |
| parent | 857dd31209d8d70bfd52d64ab3fb3bfcd45f5053 (diff) | |
Fix minor problem with the Hud/Dash being drawn while closing on a different monitor.. Fixes: . Approved by Tim Penhey.
(bzr r2676)
| -rw-r--r-- | dash/DashController.cpp | 2 | ||||
| -rw-r--r-- | hud/HudController.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dash/DashController.cpp b/dash/DashController.cpp index ed80001e1..8593d7a20 100644 --- a/dash/DashController.cpp +++ b/dash/DashController.cpp @@ -171,7 +171,7 @@ int Controller::GetIdealMonitor() { UScreen *uscreen = UScreen::GetDefault(); int primary_monitor; - if (visible_) + if (window_->IsVisible()) primary_monitor = monitor_; else if (use_primary) primary_monitor = uscreen->GetPrimaryMonitor(); diff --git a/hud/HudController.cpp b/hud/HudController.cpp index f43c82868..f3aaa25e5 100644 --- a/hud/HudController.cpp +++ b/hud/HudController.cpp @@ -125,7 +125,7 @@ void Controller::SetupHudView() int Controller::GetIdealMonitor() { int ideal_monitor; - if (visible_) + if (window_->IsVisible()) ideal_monitor = monitor_index_; else ideal_monitor = UScreen::GetDefault()->GetMonitorWithMouse(); |
