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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user