From f8411ab1381a890cc48f70b13958d8df3ef1042e Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 28 Feb 2005 16:27:49 +0000 Subject: [PATCH] Implemented handler for B_APP_ACTIVATED and (but not really) for _SHOW_DRAG_HANDLES_ git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11512 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Application.cpp | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/kits/app/Application.cpp b/src/kits/app/Application.cpp index 37444611c7..bf04e2f4e9 100644 --- a/src/kits/app/Application.cpp +++ b/src/kits/app/Application.cpp @@ -904,11 +904,24 @@ BApplication::DispatchMessage(BMessage *message, BHandler *handler) case B_PULSE: Pulse(); break; - - // TODO: Handle these as well - - case _SHOW_DRAG_HANDLES_: + case B_APP_ACTIVATED: + { + bool active = false; + message->FindBool("active", &active); + AppActivated(active); + break; + } + + case _SHOW_DRAG_HANDLES_: + { + bool visible = false; + message->FindBool("visible", &visible); + // TODO: Call the registrar or whoever is responsible for this + break; + } + + // TODO: Handle these as well // These two are handled by BTextView classes, so // BApplication probably forwards these messages to them. case _DISPOSE_DRAG_: