summaryrefslogtreecommitdiff
path: root/src/events/Misc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/events/Misc.cpp')
-rw-r--r--src/events/Misc.cpp4
1 files changed, 2 insertions, 2 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");