summaryrefslogtreecommitdiff
path: root/dash
diff options
authorBrandon Schaefer <brandon.schaefer@canonical.com>2012-09-10 18:44:39 -0700
committerBrandon Schaefer <brandon.schaefer@canonical.com>2012-09-10 18:44:39 -0700
commit857dd31209d8d70bfd52d64ab3fb3bfcd45f5053 (patch)
tree218c4a5bd318a03688ef385307cf0500a30f1486 /dash
parentef31404667c2512eb88c85324e43f0dc4d425549 (diff)
* Fixes dash/hud flashing when closing on a different monitor
(bzr r2675.1.1)
Diffstat (limited to 'dash')
-rw-r--r--dash/DashController.cpp2
1 files changed, 1 insertions, 1 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();