From 1ac1ff457ab8ef1ae6a8f2ab17ee7965adfa729f Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 20 Aug 2025 13:01:31 +0200 Subject: touch: detach from pointer input this detaches touch from pointer input. Touch should not affect where your cursor is, and it doesn't make much sense for it to move when we use touch --- src/desktop/LayerSurface.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/desktop') diff --git a/src/desktop/LayerSurface.hpp b/src/desktop/LayerSurface.hpp index b80d88de..c59e2fd2 100644 --- a/src/desktop/LayerSurface.hpp +++ b/src/desktop/LayerSurface.hpp @@ -85,3 +85,23 @@ class CLayerSurface { return m_layerSurface == rhs.m_layerSurface && m_monitor == rhs.m_monitor; } }; + +inline bool valid(PHLLS l) { + return l; +} + +inline bool valid(PHLLSREF l) { + return l; +} + +inline bool validMapped(PHLLS l) { + if (!valid(l)) + return false; + return l->m_mapped; +} + +inline bool validMapped(PHLLSREF l) { + if (!valid(l)) + return false; + return l->m_mapped; +} -- cgit v1.2.3