fix: resend only the grabbed clipboard, not all clipboards
fixes assert fail in `src/lib/server/Server.cpp` `onClipboardChanged`: `assert(sender == m_clients.find(clipboard.m_clipboardOwner)->second);`
This commit is contained in:
parent
1b27a5405d
commit
f2a3fc6596
1 changed files with 1 additions and 3 deletions
|
|
@ -1211,9 +1211,7 @@ void Server::handleClipboardGrabbed(const Event &event, BaseClientProxy *grabber
|
||||||
|
|
||||||
if (grabber == m_primaryClient && m_active != m_primaryClient) {
|
if (grabber == m_primaryClient && m_active != m_primaryClient) {
|
||||||
LOG_INFO("clipboard grabbed while active screen was changed, resending clipboard data");
|
LOG_INFO("clipboard grabbed while active screen was changed, resending clipboard data");
|
||||||
for (ClipboardID id = 0; id < kClipboardEnd; ++id) {
|
onClipboardChanged(m_primaryClient, info->m_id, clipboard.m_clipboardSeqNum);
|
||||||
onClipboardChanged(m_primaryClient, id, m_clipboards[id].m_clipboardSeqNum);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue