diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2023-09-06 12:51:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-06 12:51:36 +0200 |
| commit | 61a71c65ace5124cb26a074715280537e6e34d00 (patch) | |
| tree | b54cf4d7a0f8477b2958619384982d31663f128f /src/events/Misc.cpp | |
| parent | c3a83daa1e61285a418c39a1d9f29427c2c9a2c3 (diff) | |
internal: Formatter rework (#3186)
Diffstat (limited to 'src/events/Misc.cpp')
| -rw-r--r-- | src/events/Misc.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/events/Misc.cpp b/src/events/Misc.cpp index eb1a0e81..0f02e13a 100644 --- a/src/events/Misc.cpp +++ b/src/events/Misc.cpp @@ -49,7 +49,7 @@ void Events::listener_readyXWayland(wl_listener* listener, void* data) { const auto XCBCONNECTION = xcb_connect(g_pXWaylandManager->m_sWLRXWayland->display_name, NULL); const auto ERR = xcb_connection_has_error(XCBCONNECTION); if (ERR) { - Debug::log(LogLevel::ERR, "XWayland -> xcb_connection_has_error failed with %i", ERR); + Debug::log(LogLevel::ERR, "XWayland -> xcb_connection_has_error failed with {}", ERR); return; } @@ -58,7 +58,7 @@ void Events::listener_readyXWayland(wl_listener* listener, void* data) { xcb_intern_atom_reply_t* reply = xcb_intern_atom_reply(XCBCONNECTION, cookie, NULL); if (!reply) { - Debug::log(LogLevel::ERR, "XWayland -> Atom failed: %s", ATOM.first.c_str()); + Debug::log(LogLevel::ERR, "XWayland -> Atom failed: {}", ATOM.first.c_str()); continue; } @@ -98,14 +98,14 @@ void Events::listener_startDrag(wl_listener* listener, void* data) { wlr_drag* wlrDrag = (wlr_drag*)data; - Debug::log(LOG, "Started drag %lx", wlrDrag); + Debug::log(LOG, "Started drag {:x}", (uintptr_t)wlrDrag); wlrDrag->data = data; g_pInputManager->m_sDrag.hyprListener_destroy.initCallback(&wlrDrag->events.destroy, &Events::listener_destroyDrag, &g_pInputManager->m_sDrag, "Drag"); if (wlrDrag->icon) { - Debug::log(LOG, "Drag started with an icon %lx", wlrDrag->icon); + Debug::log(LOG, "Drag started with an icon {:x}", (uintptr_t)wlrDrag->icon); g_pInputManager->m_sDrag.dragIcon = wlrDrag->icon; wlrDrag->icon->data = g_pInputManager->m_sDrag.dragIcon; @@ -157,7 +157,7 @@ void Events::listener_commitDragIcon(void* owner, void* data) { } void Events::listener_InhibitActivate(wl_listener* listener, void* data) { - Debug::log(LOG, "Activated exclusive for %lx.", g_pCompositor->m_sSeat.exclusiveClient); + Debug::log(LOG, "Activated exclusive for {:x}.", (uintptr_t)g_pCompositor->m_sSeat.exclusiveClient); g_pInputManager->refocus(); g_pCompositor->m_sSeat.exclusiveClient = g_pCompositor->m_sWLRInhibitMgr->active_client; @@ -216,14 +216,14 @@ void Events::listener_newSessionLock(wl_listener* listener, void* data) { } void Events::listener_setGamma(wl_listener* listener, void* data) { - Debug::log(LOG, "New Gamma event at %lx", data); + Debug::log(LOG, "New Gamma event at {:x}", (uintptr_t)data); const auto E = (wlr_gamma_control_manager_v1_set_gamma_event*)data; const auto PMONITOR = g_pCompositor->getMonitorFromOutput(E->output); if (!PMONITOR) { - Debug::log(ERR, "Gamma event object references non-existent output %lx ?", E->output); + Debug::log(ERR, "Gamma event object references non-existent output {:x} ?", (uintptr_t)E->output); return; } |
