Skip to content

Commit

Permalink
BWindow::MoveOnScreen(), fix parentheses warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicah committed Sep 15, 2015
1 parent 93244a6 commit 31b0eb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kits/interface/Window.cpp
Expand Up @@ -2594,8 +2594,8 @@ BWindow::MoveOnScreen(uint32 flags)
ResizeTo(frame.Width(), frame.Height());
}

if ((flags & B_MOVE_IF_PARTIALLY_OFFSCREEN) == 0
&& !screenFrame.Contains(frame)
if (((flags & B_MOVE_IF_PARTIALLY_OFFSCREEN) == 0
&& !screenFrame.Contains(frame))
|| !frame.Intersects(screenFrame)) {
// Off and away
CenterOnScreen();
Expand Down

0 comments on commit 31b0eb9

Please sign in to comment.