Do not remove GDK events for native GTK+ controls.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-10-15 19:11:19 +00:00
parent 9c862cfb93
commit 1e89eecdc2

View File

@@ -1459,7 +1459,7 @@ gtk_window_button_press_callback( GtkWidget *widget,
// GDK sends surplus button down events // GDK sends surplus button down events
// before a double click event. We // before a double click event. We
// need to filter these out. // need to filter these out.
if (gdk_event->type == GDK_BUTTON_PRESS) if ((gdk_event->type == GDK_BUTTON_PRESS) && (win->m_wxwindow))
{ {
GdkEvent *peek_event = gdk_event_peek(); GdkEvent *peek_event = gdk_event_peek();
if (peek_event) if (peek_event)