m_handlerPopup = NULL;
}
- // m_child->ReleaseMouse();
m_child = NULL;
}
delete m_handlerPopup;
m_handlerPopup = new wxPopupWindowHandler(this);
- // m_child->CaptureMouse();
m_child->PushEventHandler(m_handlerPopup);
m_focus = winFocus ? winFocus : this;
if (!show)
{
gdk_pointer_ungrab( (guint32)GDK_CURRENT_TIME );
-
+
gtk_grab_remove( m_widget );
}
#endif
#endif
bool ret = wxPopupWindow::Show( show );
-
+
#ifdef __WXGTK__
if (show)
{
gtk_grab_add( m_widget );
-
+
gdk_pointer_grab( m_widget->window, TRUE,
(GdkEventMask)
(GDK_BUTTON_PRESS_MASK |
if (show)
{
Window xwindow = (Window) m_clientWindow;
-
+
/* int res =*/ XGrabPointer(wxGlobalDisplay(), xwindow,
True,
ButtonPressMask | ButtonReleaseMask | ButtonMotionMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask,
void wxPopupComboWindow::PositionNearCombo()
{
// the origin point must be in screen coords
- wxPoint ptOrigin = m_combo->ClientToScreen(wxPoint(0, 0));
+ wxPoint ptOrigin = m_combo->ClientToScreen(wxPoint(0,0));
#if 0 //def __WXUNIVERSAL__
// account for the fact that (0, 0) is not the top left corner of the