X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fxo-callbacks.c;h=49b3bd17e37158cf0fdc96a10e99a3b3165dcabd;hb=a04e483953a4e8fbe24c3cbbc9277a73fd2ef46e;hp=2fa9d7c869fbedfc0d26ee1ed2793f7d95994c57;hpb=2e5ff0bff41fa53d4941b6f0fe49c8914bf29cbc;p=xournal.git 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);