From: Václav Slavík Date: Tue, 12 Feb 2002 23:25:36 +0000 (+0000) Subject: don't allow dragging a window if it is maximized X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/aa74396d46f89699c3b5bb29abafc8ae2bb59ba9?ds=sidebyside 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 --- diff --git a/src/univ/topluniv.cpp b/src/univ/topluniv.cpp index 869a53a14a..6392765ed6 100644 --- a/src/univ/topluniv.cpp +++ b/src/univ/topluniv.cpp @@ -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;