Commited Bryan Petty's blind fix patch.
Added event.Skip() to size event handler in frame manager and removed the wrong work around for this. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -51,7 +51,7 @@ wxFloatingPane::wxFloatingPane(wxWindow* parent,
|
||||
m_moving = false;
|
||||
m_last_rect = wxRect();
|
||||
m_mgr.SetManagedWindow(this);
|
||||
SetExtraStyle(wxWS_EX_PROCESS_IDLE);
|
||||
// SetExtraStyle(wxWS_EX_PROCESS_IDLE);
|
||||
}
|
||||
|
||||
wxFloatingPane::~wxFloatingPane()
|
||||
@@ -125,16 +125,6 @@ void wxFloatingPane::OnClose(wxCloseEvent& evt)
|
||||
|
||||
void wxFloatingPane::OnMoveEvent(wxMoveEvent& event)
|
||||
{
|
||||
#ifdef __WXGTK__
|
||||
// On wxGTK 2.6 and 2.7 for some unknown reason, wxSizeEvents are not
|
||||
// emitted for wxFloatingPanes when they are manually resized.
|
||||
// See Bug #1528554.
|
||||
// However, it does (fortunately) wrongly emit wxMoveEvent in this scenario.
|
||||
// So we having on that to update the floating pane size - let's hope noone
|
||||
// fixes this useful bug, without fixing the above.
|
||||
m_owner_mgr->OnFloatingPaneResized(m_pane_window, GetSize());
|
||||
#endif
|
||||
|
||||
wxRect win_rect = GetRect();
|
||||
|
||||
// skip the first move event
|
||||
|
Reference in New Issue
Block a user