From 104493dfb42e8229f593e995ef38af9e40ded66c Mon Sep 17 00:00:00 2001 From: Dreamail Date: Fri, 13 Jun 2025 11:38:24 +0800 Subject: [PATCH] xwm: always sync clipboard from xwl. Some app (or scripts) use x11 clipboard only, but it may run in wayland window (like terminal and electron apps). We should set the wayland clipboard so that these apps can work properly. --- src/xwayland/XWM.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/xwayland/XWM.cpp b/src/xwayland/XWM.cpp index 1da8c71e0..1e49cd4b7 100644 --- a/src/xwayland/XWM.cpp +++ b/src/xwayland/XWM.cpp @@ -610,11 +610,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);