This commit is contained in:
Dreamail 2025-12-18 13:52:37 +07:00 committed by GitHub
commit 6209674215
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -631,11 +631,6 @@ void CXWM::handleSelectionNotify(xcb_selection_notify_event_t* e) {
sel->transfers.erase(it);
}
} else if (e->target == HYPRATOMS["TARGETS"]) {
if (!m_focusedSurface) {
Debug::log(TRACE, "[xwm] denying access to write to clipboard because no X client is in focus");
return;
}
setClipboardToWayland(*sel);
} else if (!sel->transfers.empty())
getTransferData(*sel);