mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-09 16:02:46 +08: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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user