capture mouse to be notified when it exists the popup rect (bug 1372228)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3974b828f9
commit
e16ceb3ca6
@ -34,10 +34,6 @@
|
|||||||
#include "wx/settings.h"
|
#include "wx/settings.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
|
||||||
#include <gtk/gtk.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// constants
|
// constants
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@ -157,8 +153,7 @@ wxTipWindow::wxTipWindow(wxWindow *parent,
|
|||||||
Position(wxPoint(x, y), wxSize(0,0));
|
Position(wxPoint(x, y), wxSize(0,0));
|
||||||
Popup(m_view);
|
Popup(m_view);
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
if (!GTK_WIDGET_HAS_GRAB(m_widget))
|
m_view->CaptureMouse();
|
||||||
gtk_grab_add( m_widget );
|
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
Move(x, y);
|
Move(x, y);
|
||||||
@ -174,8 +169,8 @@ wxTipWindow::~wxTipWindow()
|
|||||||
}
|
}
|
||||||
#ifdef wxUSE_POPUPWIN
|
#ifdef wxUSE_POPUPWIN
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
if (GTK_WIDGET_HAS_GRAB(m_widget))
|
if ( m_view->HasCapture() )
|
||||||
gtk_grab_remove( m_widget );
|
m_view->ReleaseMouse();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -228,8 +223,8 @@ void wxTipWindow::Close()
|
|||||||
#if wxUSE_POPUPWIN
|
#if wxUSE_POPUPWIN
|
||||||
Show(false);
|
Show(false);
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
if (GTK_WIDGET_HAS_GRAB(m_widget))
|
if ( m_view->HasCapture() )
|
||||||
gtk_grab_remove( m_widget );
|
m_view->ReleaseMouse();
|
||||||
#endif
|
#endif
|
||||||
Destroy();
|
Destroy();
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user