generate wxMoveEvent from wxPopupWindow::DoSetSize()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2014-02-10 17:11:54 +00:00
parent 8f97969383
commit 14029856dc

View File

@@ -176,12 +176,12 @@ void wxPopupWindow::DoSetSize( int x, int y, int width, int height, int sizeFlag
ConstrainSize();
if ((m_x != -1) || (m_y != -1))
if (m_x != old_x || m_y != old_y)
{
if ((m_x != old_x) || (m_y != old_y))
{
gtk_window_move( GTK_WINDOW(m_widget), m_x, m_y );
}
gtk_window_move(GTK_WINDOW(m_widget), m_x, m_y);
wxMoveEvent event(wxPoint(m_x, m_y), GetId());
event.SetEventObject(this);
HandleWindowEvent(event);
}
if ((m_width != old_width) || (m_height != old_height))