mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 02:29:49 +01:00
parent
d5ef10abf4
commit
b15be9c77d
1 changed files with 7 additions and 7 deletions
|
@ -1034,17 +1034,17 @@ void CXWM::initSelection() {
|
|||
}
|
||||
|
||||
void CXWM::setClipboardToWayland(SXSelection& sel) {
|
||||
sel.dataSource = makeShared<CXDataSource>(sel);
|
||||
if (sel.dataSource->mimes().empty()) {
|
||||
auto source = makeShared<CXDataSource>(sel);
|
||||
if (source->mimes().empty()) {
|
||||
Debug::log(ERR, "[xwm] can't set clipboard: no MIMEs");
|
||||
sel.dataSource.reset();
|
||||
return;
|
||||
}
|
||||
|
||||
if (sel.dataSource) {
|
||||
sel.dataSource = source;
|
||||
|
||||
Debug::log(LOG, "[xwm] X clipboard at {:x} takes clipboard", (uintptr_t)sel.dataSource.get());
|
||||
g_pSeatManager->setCurrentSelection(sel.dataSource);
|
||||
}
|
||||
}
|
||||
|
||||
void CXWM::getTransferData(SXSelection& sel) {
|
||||
Debug::log(LOG, "[xwm] getTransferData");
|
||||
|
|
Loading…
Reference in a new issue