don't allow dragging a window if it is maximized
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -680,7 +680,7 @@ bool wxStdFrameInputHandler::HandleMouse(wxInputConsumer *consumer,
|
|||||||
consumer->PerformAction(wxACTION_TOPLEVEL_BUTTON_PRESS, m_winPressed);
|
consumer->PerformAction(wxACTION_TOPLEVEL_BUTTON_PRESS, m_winPressed);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else if ( hit & wxHT_TOPLEVEL_TITLEBAR )
|
else if ( (hit & wxHT_TOPLEVEL_TITLEBAR) && !w->IsMaximized() )
|
||||||
{
|
{
|
||||||
consumer->PerformAction(wxACTION_TOPLEVEL_MOVE);
|
consumer->PerformAction(wxACTION_TOPLEVEL_MOVE);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Reference in New Issue
Block a user