mirror of
https://github.com/debauchee/barrier.git
synced 2025-08-06 10:09:28 +02:00
#123 Disabled clipboard grab mechanism when clipboard is disabled
This commit is contained in:
parent
ce4effa2c8
commit
a17779e7fd
2 changed files with 8 additions and 0 deletions
|
@ -1219,6 +1219,10 @@ Server::handleShapeChanged(const Event&, void* vclient)
|
|||
void
|
||||
Server::handleClipboardGrabbed(const Event& event, void* vclient)
|
||||
{
|
||||
if (!m_enableClipboard) {
|
||||
return;
|
||||
}
|
||||
|
||||
// ignore events from unknown clients
|
||||
BaseClientProxy* grabber = reinterpret_cast<BaseClientProxy*>(vclient);
|
||||
if (m_clientSet.count(grabber) == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue