Filter out triple click events entirely.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2003-09-11 18:39:15 +00:00
parent 6d56534934
commit 8b8a8e0e5f
2 changed files with 6 additions and 2 deletions

View File

@ -1521,7 +1521,8 @@ static gint gtk_window_button_press_callback( GtkWidget *widget,
GdkEvent *peek_event = gdk_event_peek();
if (peek_event)
{
if (peek_event->type == GDK_2BUTTON_PRESS)
if ((peek_event->type == GDK_2BUTTON_PRESS) ||
(peek_event->type == GDK_3BUTTON_PRESS))
{
gdk_event_free( peek_event );
return TRUE;
@ -1541,6 +1542,7 @@ static gint gtk_window_button_press_callback( GtkWidget *widget,
{
case GDK_BUTTON_PRESS: event_type = wxEVT_LEFT_DOWN; break;
case GDK_2BUTTON_PRESS: event_type = wxEVT_LEFT_DCLICK; break;
case GDK_3BUTTON_PRESS: return FALSE;
default: break;
}
}

View File

@ -1521,7 +1521,8 @@ static gint gtk_window_button_press_callback( GtkWidget *widget,
GdkEvent *peek_event = gdk_event_peek();
if (peek_event)
{
if (peek_event->type == GDK_2BUTTON_PRESS)
if ((peek_event->type == GDK_2BUTTON_PRESS) ||
(peek_event->type == GDK_3BUTTON_PRESS))
{
gdk_event_free( peek_event );
return TRUE;
@ -1541,6 +1542,7 @@ static gint gtk_window_button_press_callback( GtkWidget *widget,
{
case GDK_BUTTON_PRESS: event_type = wxEVT_LEFT_DOWN; break;
case GDK_2BUTTON_PRESS: event_type = wxEVT_LEFT_DCLICK; break;
case GDK_3BUTTON_PRESS: return FALSE;
default: break;
}
}