We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cca0492 commit 0889e89Copy full SHA for 0889e89
MTA10/gui/CGUI_Impl.cpp
@@ -1128,6 +1128,16 @@ bool CGUI_Impl::Event_MouseButtonDown ( const CEGUI::EventArgs& Args )
1128
// Call global and object handlers
1129
if ( pElement )
1130
pElement->Event_OnMouseButtonDown();
1131
+ else
1132
+ {
1133
+ // If there's no element, we're probably dealing with the root element
1134
+ CEGUI::Window* pActiveWindow = m_pTop->getActiveChild();
1135
+ if ( m_pTop == wnd && pActiveWindow )
1136
1137
+ // Deactivate active window to trigger onClientGUIBlur
1138
+ pActiveWindow->deactivate();
1139
+ }
1140
1141
1142
if ( m_MouseButtonDownHandlers[ m_Channel ] )
1143
{
0 commit comments