summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-05-03 01:27:59 +0100
committerVaxry <vaxry@vaxry.net>2024-05-03 01:52:05 +0100
commit27552976705e416ce481ca74d377578bcbc134e0 (patch)
treef878f05a1bffead708cdc7dc480e0b199860f163 /src/helpers
parent7d49819b5ecb4cb69d3db405a658ba44c17fc8e6 (diff)
virtual-pointer: move to new impl
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/WLClasses.hpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp
index 6b155e83..7eaebead 100644
--- a/src/helpers/WLClasses.hpp
+++ b/src/helpers/WLClasses.hpp
@@ -12,6 +12,7 @@
class CMonitor;
class CVirtualKeyboard;
+class CVirtualPointer;
struct SRenderData {
CMonitor* pMonitor;
@@ -104,13 +105,19 @@ struct SKeyboard {
};
struct SMouse {
- wlr_input_device* mouse = nullptr;
+ wlr_input_device* mouse = nullptr;
- std::string name = "";
+ std::string name = "";
+
+ bool virt = false;
+
+ bool connected = false; // means connected to the cursor
- bool virt = false;
+ WP<CVirtualPointer> virtualPointer;
- bool connected = false; // means connected to the cursor
+ struct {
+ CHyprSignalListener destroyMouse;
+ } listeners;
DYNLISTENER(destroyMouse);