diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-02-15 12:30:02 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-02-15 12:30:02 +0800 |
| commit | abbdcfb0cef7c8fddf3d20fe099f4524229c140b (patch) | |
| tree | e5bca100b32c25b42b301e48d6d9bd273c330f2c /src/xwayland | |
| parent | 1bbee573343063f4df284088dcd6577bfce0b95f (diff) | |
fix: address copilot review commentsclip-perm
- 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
Diffstat (limited to 'src/xwayland')
| -rw-r--r-- | src/xwayland/XWM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |
