Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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
  • Loading branch information
denexter committed Mar 15, 2016
1 parent 0579c7f commit de92b08
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/compositor/wayland_wrapper/qwldatadevicemanager.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit de92b08

Please sign in to comment.