diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-02-15 10:21:51 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-02-15 10:21:51 +0800 |
| commit | 1bbee573343063f4df284088dcd6577bfce0b95f (patch) | |
| tree | e17396ab800cb9aacba745c7856e183a49e2cd18 /src/xwayland/XWM.cpp | |
| parent | e5b27d37e8f0d9caf10a8188aedf8028de887804 (diff) | |
fix: use correct log levels for clipboard permission messages
Use Log::INFO instead of Log::LOG (which doesn't exist) in DataDeviceWlr.cpp
and DataDevice.cpp. Also use the new Log::logger->log() style in XWM.cpp
instead of the deprecated Debug::log().
Diffstat (limited to 'src/xwayland/XWM.cpp')
| -rw-r--r-- | src/xwayland/XWM.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xwayland/XWM.cpp b/src/xwayland/XWM.cpp index a896e222..66020e08 100644 --- a/src/xwayland/XWM.cpp +++ b/src/xwayland/XWM.cpp @@ -1284,10 +1284,10 @@ void CXWM::setClipboardToWayland(SXSelection& sel) { if (CLIENT && &sel == &m_clipboard) { const auto PERM = g_pDynamicPermissionManager->clientPermissionMode(CLIENT, PERMISSION_TYPE_CLIPBOARD_WRITE); if (PERM == PERMISSION_RULE_ALLOW_MODE_DENY) { - Debug::log(LOG, "[xwm] Clipboard write denied by permission manager for XWayland"); + Log::logger->log(Log::INFO, "[xwm] Clipboard write denied by permission manager for XWayland"); return; } else if (PERM == PERMISSION_RULE_ALLOW_MODE_PENDING) { - Debug::log(LOG, "[xwm] Clipboard write permission pending for XWayland"); + Log::logger->log(Log::INFO, "[xwm] Clipboard write permission pending for XWayland"); // For now, deny clipboard access when permission is pending as XWayland doesn't support async operations // TODO: In the future, this could be enhanced to store the request and retry after permission is granted return; @@ -1539,10 +1539,10 @@ bool SXSelection::sendData(xcb_selection_request_event_t* e, std::string mime) { if (CLIENT) { const auto PERM = g_pDynamicPermissionManager->clientPermissionMode(CLIENT, PERMISSION_TYPE_CLIPBOARD_READ); if (PERM == PERMISSION_RULE_ALLOW_MODE_DENY) { - Debug::log(LOG, "[xwm] Clipboard read denied by permission manager for XWayland"); + Log::logger->log(Log::INFO, "[xwm] Clipboard read denied by permission manager for XWayland"); return false; } else if (PERM == PERMISSION_RULE_ALLOW_MODE_PENDING) { - Debug::log(LOG, "[xwm] Clipboard read permission pending for XWayland"); + Log::logger->log(Log::INFO, "[xwm] Clipboard read permission pending for XWayland"); // For now, deny clipboard access when permission is pending as XWayland doesn't support async operations // TODO: In the future, this could be enhanced to store the request and retry after permission is granted return false; |
