summaryrefslogtreecommitdiff
diff options
authorBrandon Schaefer <brandon.schaefer@canonical.com>2012-09-10 22:46:31 -0400
committerTarmac <>2012-09-10 22:46:31 -0400
commited79fef1d0657c8fe8c9b5e4e8d2654f5a4a6397 (patch)
tree218c4a5bd318a03688ef385307cf0500a30f1486
parentef31404667c2512eb88c85324e43f0dc4d425549 (diff)
parent857dd31209d8d70bfd52d64ab3fb3bfcd45f5053 (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.cpp2
-rw-r--r--hud/HudController.cpp2
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();