]> git.donarmstrong.com Git - xournal.git/blobdiff - src/xo-misc.c
fix linker flags (#3208984); evdev coordinate fix (#3244118)
[xournal.git] / src / xo-misc.c
index 65a948e3a7f75694743782b3214a3431cc8b51cb..4f288e5ff6c03de1d709f2b378cfa03c8df1acd9 100644 (file)
@@ -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;