From 33444e1e5ef89efecdf1cf0b3c05daf15e8e29df Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 1 Jan 2024 16:47:54 +0100 Subject: [PATCH] deps: update wlroots --- src/events/Misc.cpp | 4 ++-- src/render/Renderer.cpp | 4 ++-- subprojects/wlroots | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/events/Misc.cpp b/src/events/Misc.cpp index 91a0ebda..6b77d9c5 100644 --- a/src/events/Misc.cpp +++ b/src/events/Misc.cpp @@ -256,9 +256,9 @@ void Events::listener_newTearingHint(wl_listener* listener, void* data) { const auto PWINDOW = g_pCompositor->getWindowFromSurface(TEARINGHINT->pWlrHint->surface); if (PWINDOW) { - PWINDOW->m_bTearingHint = TEARINGHINT->pWlrHint->hint; + PWINDOW->m_bTearingHint = (bool)TEARINGHINT->pWlrHint->current; - Debug::log(LOG, "Hint {} (window {}) set tearing hint to {}", (uintptr_t)TEARINGHINT->pWlrHint, PWINDOW, (uint32_t)TEARINGHINT->pWlrHint->hint); + Debug::log(LOG, "Hint {} (window {}) set tearing hint to {}", (uintptr_t)TEARINGHINT->pWlrHint, PWINDOW, (uint32_t)TEARINGHINT->pWlrHint->current); } }, NEWCTRL, "TearingController"); diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 88320139..0416d08f 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -161,7 +161,7 @@ static void renderSurface(struct wlr_surface* surface, int x, int y, void* data) if (!g_pHyprRenderer->m_bBlockSurfaceFeedback) { wlr_surface_send_frame_done(surface, RDATA->when); - wlr_presentation_surface_textured_on_output(g_pCompositor->m_sWLRPresentation, surface, RDATA->pMonitor->output); + wlr_presentation_surface_textured_on_output(surface, RDATA->pMonitor->output); } g_pHyprOpenGL->blend(true); @@ -905,7 +905,7 @@ bool CHyprRenderer::attemptDirectScanout(CMonitor* pMonitor) { timespec now; clock_gettime(CLOCK_MONOTONIC, &now); wlr_surface_send_frame_done(PSURFACE, &now); - wlr_presentation_surface_scanned_out_on_output(g_pCompositor->m_sWLRPresentation, PSURFACE, pMonitor->output); + wlr_presentation_surface_scanned_out_on_output(PSURFACE, pMonitor->output); if (wlr_output_commit(pMonitor->output)) { if (!m_pLastScanout) { diff --git a/subprojects/wlroots b/subprojects/wlroots index 5d639394..f81c3d93 160000 --- a/subprojects/wlroots +++ b/subprojects/wlroots @@ -1 +1 @@ -Subproject commit 5d639394f3e83b01596dcd166a44a9a1a2583350 +Subproject commit f81c3d93cd6f61b20ae784297679283438def8df