From de92b081014c70916fe2ac49d743b52f1c96e6b3 Mon Sep 17 00:00:00 2001 From: Andrew den Exter Date: Mon, 14 Mar 2016 16:51:26 +1000 Subject: [PATCH] [qtwayland] Fix copying to the clipboard failing. Fixes JB#32781 A ulong timestamp with millisecond resolution overflows after about 49 hours meaning a direct comparison between timestamps is only valid until that wrap point is reached. Given the timestamps originate in the compositor when the data source object is created it is difficult to see what information they provide which isn't implicit in the order of execution of calls to the function the check is in, making removing the check the safest course of action. Change-Id: I1b1d4458b913d54028e5e58d7eb3f217cc5b8186 --- src/compositor/wayland_wrapper/qwldatadevicemanager.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/compositor/wayland_wrapper/qwldatadevicemanager.cpp b/src/compositor/wayland_wrapper/qwldatadevicemanager.cpp index ab4c3fec..0122de03 100644 --- a/src/compositor/wayland_wrapper/qwldatadevicemanager.cpp +++ b/src/compositor/wayland_wrapper/qwldatadevicemanager.cpp @@ -70,12 +70,6 @@ DataDeviceManager::DataDeviceManager(Compositor *compositor) void DataDeviceManager::setCurrentSelectionSource(DataSource *source) { - if (m_current_selection_source && source - && m_current_selection_source->time() > source->time()) { - qDebug() << "Trying to set older selection"; - return; - } - m_compositorOwnsSelection = false; finishReadFromClient();