From beee22a95ed9044950e5486f22edd813e00ffa2c Mon Sep 17 00:00:00 2001 From: Kamikadze <40305144+Kam1k4dze@users.noreply.github.com> Date: Thu, 14 Aug 2025 19:44:56 +0500 Subject: refactor: Use new hyprutils casts (#11377) --- src/xwayland/XSurface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/xwayland/XSurface.cpp') diff --git a/src/xwayland/XSurface.cpp b/src/xwayland/XSurface.cpp index 3b0615a0..ac8ac512 100644 --- a/src/xwayland/XSurface.cpp +++ b/src/xwayland/XSurface.cpp @@ -98,7 +98,7 @@ void CXWaylandSurface::map() { m_mapped = true; m_surface->map(); - Debug::log(LOG, "XWayland surface {:x} mapping", (uintptr_t)this); + Debug::log(LOG, "XWayland surface {:x} mapping", rc(this)); m_events.map.emit(); @@ -118,7 +118,7 @@ void CXWaylandSurface::unmap() { m_events.unmap.emit(); m_surface->unmap(); - Debug::log(LOG, "XWayland surface {:x} unmapping", (uintptr_t)this); + Debug::log(LOG, "XWayland surface {:x} unmapping", rc(this)); g_pXWayland->m_wm->updateClientList(); } @@ -184,7 +184,7 @@ void CXWaylandSurface::configure(const CBox& box) { e.border_width = 0; e.above_sibling = XCB_NONE; e.override_redirect = m_overrideRedirect; - xcb_send_event(g_pXWayland->m_wm->getConnection(), false, m_xID, XCB_EVENT_MASK_STRUCTURE_NOTIFY, (const char*)&e); + xcb_send_event(g_pXWayland->m_wm->getConnection(), false, m_xID, XCB_EVENT_MASK_STRUCTURE_NOTIFY, rc(&e)); } g_pXWayland->m_wm->updateClientList(); -- cgit v1.2.3