debug: move to hyprutils' logger (#12673)
This commit is contained in:
parent
f88deb928a
commit
6175ecd4c4
147 changed files with 1696 additions and 1709 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue