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
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user