aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-10-19 16:24:03 +0100
committerVaxry <[email protected]>2024-10-19 16:24:03 +0100
commit0eaf3581a340f2521d96fe46d7956913c72d7698 (patch)
treeda44356c68717d4c1560d724b9d3917ffc962d7e
parent62ee5cc2739d70570dbe143c9bd75d00a51db942 (diff)
downloadHyprland-0eaf3581a340f2521d96fe46d7956913c72d7698.tar.gz
Hyprland-0eaf3581a340f2521d96fe46d7956913c72d7698.zip
window: guard PMONITOR in commit listener
ref #8170
-rw-r--r--src/events/Windows.cpp4
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;