From f487b224821f2d090f0e79b8250938931cd0d820 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 29 Jul 2017 17:28:30 +0530 Subject: [PATCH] ... --- src/calibre/gui2/library/alternate_views.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/library/alternate_views.py b/src/calibre/gui2/library/alternate_views.py index 3823a65564..2294c4ae9c 100644 --- a/src/calibre/gui2/library/alternate_views.py +++ b/src/calibre/gui2/library/alternate_views.py @@ -22,7 +22,7 @@ from PyQt5.Qt import ( qBlue, QItemSelectionModel, QIcon, QFont, QMouseEvent) from calibre import fit_image, prints, prepare_string_for_xml, human_readable -from calibre.constants import DEBUG, config_dir, islinux, iswindows, isosx +from calibre.constants import DEBUG, config_dir, islinux, iswindows from calibre.ebooks.metadata import fmt_sidx, rating_to_stars from calibre.utils import join_with_timeout from calibre.utils.monotonic import monotonic @@ -626,10 +626,11 @@ class CoverDelegate(QStyledItemDelegate): # }}} -has_gestures = iswindows or isosx -# Enabling gesture support on X11 causes Qt to send fake touch events when +has_gestures = iswindows +# Enabling gesture support on X11/OS X causes Qt to send fake touch events when # right clicking/dragging with the mouse, which breaks things, for example: -# https://bugs.launchpad.net/bugs/1707282 +# https://bugs.launchpad.net/bugs/1707282 and +# https://www.mobileread.com/forums/showthread.php?t=289057 def send_click(view, pos, button=Qt.LeftButton, double_click=False):