diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-17 17:35:28 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-17 17:35:28 +0100 |
| commit | 8b3d8dc7927a77b615174b1241545023c554f97d (patch) | |
| tree | b3d38169890c07c6ef1c3aab938fcb8fac6b335c /src/Compositor.cpp | |
| parent | 5cb5b628b82e4212b7ce1ead1eabc6dc974b616d (diff) | |
Format: use %lx for all addresses
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index e7ffd2ea..289fdafb 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -885,7 +885,7 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { // Send an event g_pEventManager->postEvent(SHyprIPCEvent{"activewindow", g_pXWaylandManager->getAppIDClass(pWindow) + "," + pWindow->m_szTitle}); - g_pEventManager->postEvent(SHyprIPCEvent{"activewindowv2", getFormat("%x", pWindow)}); + g_pEventManager->postEvent(SHyprIPCEvent{"activewindowv2", getFormat("%lx", pWindow)}); EMIT_HOOK_EVENT("activeWindow", pWindow); @@ -906,7 +906,7 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) { // move to front of the window history const auto HISTORYPIVOT = std::find_if(m_vWindowFocusHistory.begin(), m_vWindowFocusHistory.end(), [&](const auto& other) { return other == pWindow; }); if (HISTORYPIVOT == m_vWindowFocusHistory.end()) { - Debug::log(ERR, "BUG THIS: Window %x has no pivot in history", pWindow); + Debug::log(ERR, "BUG THIS: Window %lx has no pivot in history", pWindow); } else { std::rotate(m_vWindowFocusHistory.begin(), HISTORYPIVOT, HISTORYPIVOT + 1); } @@ -951,9 +951,9 @@ void CCompositor::focusSurface(wlr_surface* pSurface, CWindow* pWindowOwner) { wl_signal_emit_mutable(&m_sSeat.seat->keyboard_state.events.focus_change, &event); if (pWindowOwner) - Debug::log(LOG, "Set keyboard focus to surface %x, with window name: %s", pSurface, pWindowOwner->m_szTitle.c_str()); + Debug::log(LOG, "Set keyboard focus to surface %lx, with window name: %s", pSurface, pWindowOwner->m_szTitle.c_str()); else - Debug::log(LOG, "Set keyboard focus to surface %x", pSurface); + Debug::log(LOG, "Set keyboard focus to surface %lx", pSurface); g_pXWaylandManager->activateSurface(pSurface, true); m_pLastFocus = pSurface; @@ -2084,7 +2084,7 @@ CWindow* CCompositor::getWindowByRegex(const std::string& regexp) { break; } case MODE_ADDRESS: { - std::string addr = getFormat("0x%x", w.get()); + std::string addr = getFormat("0x%lx", w.get()); if (matchCheck != addr) continue; break; |
