Clean up use of SetPosition().

This fixes a bug where an empty white window would appear when changing
workspaces if there were no notifications.
This commit is contained in:
Alex Wilson
2012-04-01 11:54:20 +12:00
parent 259ffc0252
commit 710eb7410f
@@ -100,7 +100,7 @@ NotificationWindow::WorkspaceActivated(int32 /*workspace*/, bool active)
{
// Ensure window is in the correct position
if (active)
_ShowHide();
SetPosition();
}
@@ -317,9 +317,10 @@ NotificationWindow::_ShowHide()
return;
}
SetPosition();
if (IsHidden())
if (IsHidden()) {
SetPosition();
Show();
}
}