mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-06 03:46:29 +08:00
Restored lost files and changes in version 1.3.1 to depot.
This commit is contained in:
@@ -42,15 +42,18 @@ COSXClipboard::empty()
|
||||
assert(m_scrap != NULL);
|
||||
|
||||
OSStatus err = ClearScrap(&m_scrap);
|
||||
// XXX -- check err?
|
||||
if (err != noErr) {
|
||||
LOG((CLOG_DEBUG "failed to grab clipboard"));
|
||||
return false;
|
||||
}
|
||||
|
||||
// we own the clipboard
|
||||
err = PutScrapFlavor(
|
||||
m_scrap,
|
||||
getOwnershipFlavor(),
|
||||
kScrapFlavorMaskNone,
|
||||
0,
|
||||
0);
|
||||
|
||||
0);
|
||||
if (err != noErr) {
|
||||
LOG((CLOG_DEBUG "failed to grab clipboard"));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user