From abbdcfb0cef7c8fddf3d20fe099f4524229c140b Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 15 Feb 2026 12:30:02 +0800 Subject: fix: address copilot review comments - Fix log level from INFO to DEBUG in DataDevice.cpp for offer operations - Remove unused permissionToHumanString function - Add I18n keys for clipboard read/write permissions - Add primary selection permission check in XWM.cpp (was only checking clipboard) - Add async permission handling in DataDeviceWlr.cpp for zwlr protocol --- src/xwayland/XWM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xwayland/XWM.cpp') diff --git a/src/xwayland/XWM.cpp b/src/xwayland/XWM.cpp index 66020e08..e25f94e8 100644 --- a/src/xwayland/XWM.cpp +++ b/src/xwayland/XWM.cpp @@ -1281,7 +1281,7 @@ void CXWM::initSelection() { void CXWM::setClipboardToWayland(SXSelection& sel) { const auto CLIENT = g_pXWayland->m_server ? g_pXWayland->m_server->m_xwaylandClient : nullptr; - if (CLIENT && &sel == &m_clipboard) { + if (CLIENT) { const auto PERM = g_pDynamicPermissionManager->clientPermissionMode(CLIENT, PERMISSION_TYPE_CLIPBOARD_WRITE); if (PERM == PERMISSION_RULE_ALLOW_MODE_DENY) { Log::logger->log(Log::INFO, "[xwm] Clipboard write denied by permission manager for XWayland"); -- cgit v1.2.3