X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fxo-misc.c;h=4f288e5ff6c03de1d709f2b378cfa03c8df1acd9;hb=7563208b4169597648e0ca8456c5d6eba0a15edd;hp=65a948e3a7f75694743782b3214a3431cc8b51cb;hpb=1ae71daaf4eb179352791670ac7460aa09069af6;p=xournal.git diff --git a/src/xo-misc.c b/src/xo-misc.c index 65a948e..4f288e5 100644 --- a/src/xo-misc.c +++ b/src/xo-misc.c @@ -373,7 +373,7 @@ void fix_xinput_coords(GdkEvent *event) #ifdef ENABLE_XINPUT_BUGFIX // fix broken events with the core pointer's location - if (!finite(axes[0]) || !finite(axes[1]) || (axes[0]==0. && axes[1]==0.)) { + if (!finite(axes[0]) || !finite(axes[1]) || axes[0]==0. || axes[1]==0.) { gdk_window_get_pointer(GTK_WIDGET(canvas)->window, &ix, &iy, NULL); *px = ix + sx; *py = iy + sy;