summaryrefslogtreecommitdiff
path: root/src/xwayland/Dnd.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-12-18 17:23:24 +0000
committerGitHub <noreply@github.com>2025-12-18 17:23:24 +0000
commit6175ecd4c4ba817c4620f66a75e1e11da7c7a8ca (patch)
treecf73852f1fc08b1dcee5a3a7380f914aaad9c50a /src/xwayland/Dnd.cpp
parentf88deb928a0f7dc02f427473f8c29e8f2bed14a3 (diff)
debug: move to hyprutils' logger (#12673)
Diffstat (limited to 'src/xwayland/Dnd.cpp')
-rw-r--r--src/xwayland/Dnd.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xwayland/Dnd.cpp b/src/xwayland/Dnd.cpp
index 924df6b5..963a830e 100644
--- a/src/xwayland/Dnd.cpp
+++ b/src/xwayland/Dnd.cpp
@@ -61,7 +61,7 @@ xcb_window_t CX11DataDevice::getProxyWindow(xcb_window_t window) {
xcb_window_t verifyWindow = *sc<xcb_window_t*>(xcb_get_property_value(proxyVerifyReply));
if (verifyWindow == proxyWindow) {
targetWindow = proxyWindow;
- Debug::log(LOG, "Using XdndProxy window {:x} for window {:x}", proxyWindow, window);
+ Log::logger->log(Log::DEBUG, "Using XdndProxy window {:x} for window {:x}", proxyWindow, window);
}
}
free(proxyVerifyReply); // NOLINT(cppcoreguidelines-no-malloc)
@@ -103,14 +103,14 @@ void CX11DataDevice::sendEnter(uint32_t serial, SP<CWLSurfaceResource> surf, con
auto XSURF = g_pXWayland->m_wm->windowForWayland(surf);
if (!XSURF) {
- Debug::log(ERR, "CX11DataDevice::sendEnter: No xwayland surface for destination");
+ Log::logger->log(Log::ERR, "CX11DataDevice::sendEnter: No xwayland surface for destination");
return;
}
auto SOURCE = offer->getSource();
if (!SOURCE) {
- Debug::log(ERR, "CX11DataDevice::sendEnter: No source");
+ Log::logger->log(Log::ERR, "CX11DataDevice::sendEnter: No source");
return;
}
@@ -141,7 +141,7 @@ void CX11DataDevice::sendEnter(uint32_t serial, SP<CWLSurfaceResource> surf, con
auto hlSurface = XSURF->m_surface.lock();
if (!hlSurface) {
- Debug::log(ERR, "CX11DataDevice::sendEnter: Non desktop x surface?!");
+ Log::logger->log(Log::ERR, "CX11DataDevice::sendEnter: Non desktop x surface?!");
m_lastSurfaceCoords = {};
return;
}
@@ -198,7 +198,7 @@ void CX11DataDevice::sendMotion(uint32_t timeMs, const Vector2D& local) {
void CX11DataDevice::sendDrop() {
#ifndef NO_XWAYLAND
if (!m_lastSurface || !m_lastOffer) {
- Debug::log(ERR, "CX11DataDevice::sendDrop: No surface or offer");
+ Log::logger->log(Log::ERR, "CX11DataDevice::sendDrop: No surface or offer");
return;
}
@@ -256,7 +256,7 @@ bool CX11DataSource::dndDone() {
}
void CX11DataSource::error(uint32_t code, const std::string& msg) {
- Debug::log(ERR, "CX11DataSource error: code {} msg {}", code, msg);
+ Log::logger->log(Log::ERR, "CX11DataSource error: code {} msg {}", code, msg);
m_dndSuccess = false;
m_dropped = false;
}