mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-11 00:58:14 +08:00
Prevented open clipboard twice #4815
This commit is contained in:
@@ -314,7 +314,10 @@ XWindowsClipboard::add(EFormat format, const String& data)
|
||||
bool
|
||||
XWindowsClipboard::open(Time time) const
|
||||
{
|
||||
assert(!m_open);
|
||||
if (m_open) {
|
||||
return false;
|
||||
LOG((CLOG_DEBUG "failed to open clipboard: already opened"));
|
||||
}
|
||||
|
||||
LOG((CLOG_DEBUG "open clipboard %d", m_id));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user