]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/window.cpp
Changed version to 2.5.1
[wxWidgets.git] / src / gtk / window.cpp
index 8d51c018aa170c0b64c42713eaefe7247d8321bb..5dd7c8aabc114b4287da77eff52c17537a10d2d0 100644 (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;
         }
     }