diff options
author | Vaxry <[email protected]> | 2024-10-19 16:24:03 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-10-19 16:24:03 +0100 |
commit | 0eaf3581a340f2521d96fe46d7956913c72d7698 (patch) | |
tree | da44356c68717d4c1560d724b9d3917ffc962d7e | |
parent | 62ee5cc2739d70570dbe143c9bd75d00a51db942 (diff) | |
download | Hyprland-0eaf3581a340f2521d96fe46d7956913c72d7698.tar.gz Hyprland-0eaf3581a340f2521d96fe46d7956913c72d7698.zip |
window: guard PMONITOR in commit listener
ref #8170
-rw-r--r-- | src/events/Windows.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index d2d5bebf..37e5406c 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -775,7 +775,9 @@ void Events::listener_commitWindow(void* owner, void* data) { const auto PMONITOR = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID); - PMONITOR->debugLastPresentation(g_pSeatManager->isPointerFrameCommit ? "listener_commitWindow skip" : "listener_commitWindow"); + if (PMONITOR) + PMONITOR->debugLastPresentation(g_pSeatManager->isPointerFrameCommit ? "listener_commitWindow skip" : "listener_commitWindow"); + if (g_pSeatManager->isPointerFrameCommit) { g_pSeatManager->isPointerFrameSkipped = false; g_pSeatManager->isPointerFrameCommit = false; |