mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-24 03:23:15 +03:00
Was trying to avoid sending clipboard if timestamp wasn't
changed but clipboard owners may not update that timestamp when the selection is changed. Disabled the timestamp check.
This commit is contained in:
parent
f052d126c0
commit
eb2a202834
@ -279,6 +279,7 @@ void CXWindowsScreen::getDisplayClipboard(
|
||||
// don't update clipboard object if clipboard hasn't changed. ask
|
||||
// the selection for the tiemstamp when it acquired the selection.
|
||||
Atom format;
|
||||
/* XXX -- timestamp not always updated when clipboard is changed
|
||||
CString data;
|
||||
if (getDisplayClipboard(selection, m_atomTimestamp,
|
||||
requestor, timestamp, &format, &data) &&
|
||||
@ -294,6 +295,7 @@ void CXWindowsScreen::getDisplayClipboard(
|
||||
// use clipboard owner's time as timestamp
|
||||
timestamp = time;
|
||||
}
|
||||
*/
|
||||
|
||||
// clear the clipboard object
|
||||
if (!clipboard->open(timestamp)) {
|
||||
|
Loading…
Reference in New Issue
Block a user