GCC 4 fix. Might have changed the semantics, but I refuse to hurt

my brain by trying to understand code using gotos. People, learn
structured programming!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14870 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-11-12 17:49:05 +00:00
parent 292d5ced0e
commit 56436a1ab8

View File

@ -426,12 +426,13 @@ WinBorder::MouseDown(const BMessage *msg)
// not in FFM mode?
if (desktopSettings.MouseMode() == B_NORMAL_MOUSE) {
// default action is to drag the WinBorder
click_type action = DEC_DRAG;
Layer *target = LayerAt(where);
if (target == this) {
// clicking WinBorder visible area
winBorderAreaHandle:
click_type action = DEC_DRAG;
if (fDecorator)
action = _ActionFor(msg);
@ -499,7 +500,7 @@ WinBorder::MouseDown(const BMessage *msg)
if (WindowFlags() & B_WILL_ACCEPT_FIRST_CLICK)
target->MouseDown(msg);
else
goto activateWindow;
GetRootLayer()->SetActive(this);
}
}
} else {