summaryrefslogtreecommitdiff
path: root/src/desktop
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2025-08-20 13:01:31 +0200
committervaxerski <vaxry@vaxry.net>2025-08-20 13:01:31 +0200
commit1ac1ff457ab8ef1ae6a8f2ab17ee7965adfa729f (patch)
treea9b9cfa56423f72e717567d43f98be58ec61e93a /src/desktop
parent9a202069454d2fab4691bad6620547b271aad93c (diff)
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
Diffstat (limited to 'src/desktop')
-rw-r--r--src/desktop/LayerSurface.hpp20
1 files changed, 20 insertions, 0 deletions
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;
+}