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:
parent
c6712985be
commit
aa74396d46
@ -680,7 +680,7 @@ bool wxStdFrameInputHandler::HandleMouse(wxInputConsumer *consumer,
|
||||
consumer->PerformAction(wxACTION_TOPLEVEL_BUTTON_PRESS, m_winPressed);
|
||||
return TRUE;
|
||||
}
|
||||
else if ( hit & wxHT_TOPLEVEL_TITLEBAR )
|
||||
else if ( (hit & wxHT_TOPLEVEL_TITLEBAR) && !w->IsMaximized() )
|
||||
{
|
||||
consumer->PerformAction(wxACTION_TOPLEVEL_MOVE);
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user