]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/window.cpp
wxVariant is in wxBase so should be forward declared using WXDLLIMPEXP_BASE and not...
[wxWidgets.git] / src / gtk1 / window.cpp
index a0acf3aa000887eda9e454dbfe78a879a0240df7..345274e55d7dce1c482d79c094b96c1ba82d3713 100644 (file)
@@ -1165,7 +1165,6 @@ static gint gtk_window_key_press_callback( GtkWidget *widget,
     wxKeyEvent event( wxEVT_KEY_DOWN );
     bool ret = false;
     bool return_after_IM = false;
-    win->m_imData->lastKeyEvent = gdk_event;
 
     if( wxTranslateGTKKeyEventToWx(event, win, gdk_event) )
     {
@@ -1705,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