mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Select groups first.
--HG-- branch : dfighter-tools
This commit is contained in:
parent
d2587df8c1
commit
97ddd3573d
1 changed files with 25 additions and 12 deletions
|
@ -2400,7 +2400,19 @@ namespace NLGUI
|
||||||
// This may happen when alt-tab has been used => the sheet is dragged but the left button is up
|
// This may happen when alt-tab has been used => the sheet is dragged but the left button is up
|
||||||
if (!CCtrlDraggable::getDraggedSheet())
|
if (!CCtrlDraggable::getDraggedSheet())
|
||||||
{
|
{
|
||||||
|
for( sint32 i = _GroupsUnderPointer.size() - 1; i >= 0; i-- )
|
||||||
|
{
|
||||||
|
CInterfaceGroup *g = _GroupsUnderPointer[ i ];
|
||||||
|
if( ( g != NULL ) && ( g->isInGroup( pNewCurrentWnd ) ) )
|
||||||
|
{
|
||||||
|
_CapturedView = g;
|
||||||
|
captured = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if( !captured )
|
||||||
|
{
|
||||||
// Take the top most control.
|
// Take the top most control.
|
||||||
uint nMaxDepth = 0;
|
uint nMaxDepth = 0;
|
||||||
const std::vector< CCtrlBase* >& _CtrlsUnderPointer = getCtrlsUnderPointer();
|
const std::vector< CCtrlBase* >& _CtrlsUnderPointer = getCtrlsUnderPointer();
|
||||||
|
@ -2418,6 +2430,7 @@ namespace NLGUI
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if( CInterfaceElement::getEditorMode() && !captured )
|
if( CInterfaceElement::getEditorMode() && !captured )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue