notification_server: Fix x86_64 build (missing parentheses).

This commit is contained in:
Augustin Cavalier 2017-12-24 12:04:26 -05:00
parent ab75d3b5a8
commit 726fb6c441

View File

@ -320,21 +320,20 @@ NotificationWindow::SetPosition()
: fPosition;
if (position == B_FOLLOW_DESKBAR)
{
if (position == B_FOLLOW_DESKBAR) {
BRect frame = deskbar.Frame();
switch (deskbar.Location()) {
case B_DESKBAR_TOP:
// In case of overlapping here or for bottom
// use user's notification position
y = frame.bottom + topOffset;
x = (fPosition == B_FOLLOW_LEFT | B_FOLLOW_TOP)
x = (fPosition == (B_FOLLOW_LEFT | B_FOLLOW_TOP))
? frame.left + rightOffset
: frame.right - width + rightOffset;
break;
case B_DESKBAR_BOTTOM:
y = frame.top - height - bottomOffset;
x = (fPosition == B_FOLLOW_LEFT | B_FOLLOW_BOTTOM)
x = (fPosition == (B_FOLLOW_LEFT | B_FOLLOW_BOTTOM))
? frame.left + rightOffset
: frame.right - width + rightOffset;
break;