From 713417aeeb33f10146b15f1a5da91a6da01b4af1 Mon Sep 17 00:00:00 2001 From: Andrew Dyukov Date: Mon, 2 Aug 2010 21:00:02 +0300 Subject: EXT-5609 FIXED Avoided showing script floater undocked if it was created in mouselook mode. Commiting on behalf of Alex Productengine. - Added check if floater is constructed in mouselook mode and added forcing dock state when floater is shown after constructing in mouselook mode. Reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/830/ --HG-- branch : product-engine --- indra/llui/lldockablefloater.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra/llui/lldockablefloater.h') diff --git a/indra/llui/lldockablefloater.h b/indra/llui/lldockablefloater.h index 2b1ce99ae2..054d59b984 100644 --- a/indra/llui/lldockablefloater.h +++ b/indra/llui/lldockablefloater.h @@ -130,6 +130,10 @@ protected: void setDockControl(LLDockControl* dockControl); const LLUIImagePtr& getDockTongue(); + // Checks if docking should be forced. + // It may be useful e.g. if floater created in mouselook mode (see EXT-5609) + boost::function mIsDockedStateForcedCallback; + private: std::auto_ptr mDockControl; LLUIImagePtr mDockTongue; @@ -143,6 +147,9 @@ private: bool mUseTongue; bool mOverlapsScreenChannel; + + // Force docking when the floater is being shown for the first time. + bool mForceDocking; }; #endif /* LL_DOCKABLEFLOATER_H */ -- cgit v1.2.3