From 56436a1ab84a5c34c4eb7359737d285b1974b0ef Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 12 Nov 2005 17:49:05 +0000 Subject: [PATCH] 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 --- src/servers/app/WinBorder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/servers/app/WinBorder.cpp b/src/servers/app/WinBorder.cpp index 500b332bcc..c52a9d1522 100644 --- a/src/servers/app/WinBorder.cpp +++ b/src/servers/app/WinBorder.cpp @@ -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 {