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 // Ensure window is in the correct position
if (active) if (active)
_ShowHide(); SetPosition();
} }
@@ -317,10 +317,11 @@ NotificationWindow::_ShowHide()
return; return;
} }
if (IsHidden()) {
SetPosition(); SetPosition();
if (IsHidden())
Show(); Show();
} }
}
void void