From a04e483953a4e8fbe24c3cbbc9277a73fd2ef46e Mon Sep 17 00:00:00 2001 From: auroux Date: Sat, 25 Aug 2007 10:52:57 +0000 Subject: [PATCH] Fix crashes under GTK+ 2.11. --- src/xo-callbacks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xo-callbacks.c b/src/xo-callbacks.c index 2fa9d7c..49b3bd1 100644 --- a/src/xo-callbacks.c +++ b/src/xo-callbacks.c @@ -2341,6 +2341,8 @@ on_canvas_button_press_event (GtkWidget *widget, if (!ui.use_xinput && !is_core) return FALSE; if (ui.use_xinput && is_core && ui.discard_corepointer) return FALSE; if (event->button > 3) return FALSE; // no painting with the mouse wheel! + if (event->type != GDK_BUTTON_PRESS) return FALSE; + // double-clicks may have broken axes member (free'd) due to a bug in GDK if (!is_core) { // re-get the axis values since Synaptics sends bogus ones gdk_device_get_state(event->device, event->window, event->axes, NULL); -- 2.39.2