Commit de92b081 authored by Andrew den Exter's avatar Andrew den Exter

[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
parent 0579c7f1
......@@ -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";
m_compositorOwnsSelection = false;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment