X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfeb1e58383610000db417a5e58f85e843c39a61..e7084852441ed9332e453715bd2229a974d34e89:/src/gtk1/window.cpp diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 950f84f25a..345274e55d 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -1704,6 +1704,7 @@ static gint gtk_window_button_press_callback( GtkWidget *widget, // GdkDisplay is a GTK+ 2.2.0 thing #if defined(__WXGTK20__) && GTK_CHECK_VERSION(2, 2, 0) if ( gdk_event->type == GDK_2BUTTON_PRESS && + !gtk_check_version(2,2,0) && gdk_event->button >= 1 && gdk_event->button <= 3 ) { // Reset GDK internal timestamp variables in order to disable GDK