Am Samstag, 9. Juli 2016 um 04:09:30, schrieb Enrico Forestieri <for...@lyx.org> > I came up with the attached patch that solves the issue for me. > It requires the Qt5X11Extras module, which is not mandatory, though. > The patch simply tries to refresh the timestamp of the selection request. > I still get the warning from Qt5 (even if only once), but the paste by the > middle mouse button succeeds anyway. Recall that this issue does not occur > with a focus-follows-mouse policy. Given that it also does not occur with > some applications, I don't know who is to blame for this. > > The patch is for Qt5 and autotools only (I don't know cmake, sorry). >
Attached. Kornel
signature.asc
Description: This is a digitally signed message part.
diff --git a/CMakeLists.txt b/CMakeLists.txt index 76cbdde..e39fc59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -929,6 +929,7 @@ set(QPA_XCB) if(Qt5X11Extras_FOUND AND QT_USES_X11) # QPA_XCB is only valid if QT5+X11 set(QPA_XCB 1) + set(HAVE_QT5_X11_EXTRAS 1) endif() configure_file(${LYX_CMAKE_DIR}/config.h.cmake ${TOP_BINARY_DIR}/config.h) diff --git a/development/cmake/config.h.cmake b/development/cmake/config.h.cmake index 253d39f..95148b6 100644 --- a/development/cmake/config.h.cmake +++ b/development/cmake/config.h.cmake @@ -73,6 +73,9 @@ // Defined if QT=QT5 uses X11 #cmakedefine QPA_XCB 1 +// Define if you have the Qt5X11Extras module +#cmakedefine HAVE_QT5_X11_EXTRAS 1 + ${Include_used_spellchecker} #cmakedefine AIKSAURUSLIB_FOUND 1