From 64bdc477b2e1961544a030bf44153b554d6d3009 Mon Sep 17 00:00:00 2001 From: Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> Date: Fri, 1 Mar 2024 23:45:38 +0100 Subject: [PATCH] Revert "core: dispatch on exit instead of roundtrip" (#114) This reverts commit 2c7027d2b5901fb607046e60db650b034e12e261. Without the roundtrip it was possible that session_lock_surface_destroy gets called before unlock_and_destroy is processed. --- src/core/hyprlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index ef4bcd9..e2a9991 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -725,7 +725,7 @@ void CHyprlock::unlockSession() { m_bTerminate = true; m_bLocked = false; - wl_display_dispatch(m_sWaylandState.display); + wl_display_roundtrip(m_sWaylandState.display); } void CHyprlock::onLockLocked() {