From 14029856dcb09031bee4f6efaa22d0a9eb377606 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 10 Feb 2014 17:11:54 +0000 Subject: [PATCH] generate wxMoveEvent from wxPopupWindow::DoSetSize() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/popupwin.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gtk/popupwin.cpp b/src/gtk/popupwin.cpp index 08a85ea1a5..68b8753f76 100644 --- a/src/gtk/popupwin.cpp +++ b/src/gtk/popupwin.cpp @@ -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))