From 42e4028f3ab9c3606f1ae638ad51f26a3cfa90d8 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Fri, 12 Jan 2024 01:34:42 +0100 Subject: [PATCH] dev: add some logging --- src/GestureManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GestureManager.cpp b/src/GestureManager.cpp index 359637a..61e43a4 100644 --- a/src/GestureManager.cpp +++ b/src/GestureManager.cpp @@ -90,6 +90,7 @@ bool GestureManager::handleDragGesture(const DragGesture& gev) { &HyprlandAPI::getConfigValue(PHANDLE, "plugin:touch_gestures:workspace_swipe_fingers")->intValue; static auto* const WORKSPACE_SWIPE_EDGE = &HyprlandAPI::getConfigValue(PHANDLE, "plugin:touch_gestures:workspace_swipe_edge")->strValue; + Debug::log(LOG, "[hyprgrass] Drag gesture begin: {}", gev.to_string()); switch (gev.type) { case DragGestureType::SWIPE: @@ -200,6 +201,7 @@ void GestureManager::dragGestureUpdate(const wf::touch::gesture_event_t& ev) { } void GestureManager::handleDragGestureEnd(const DragGesture& gev) { + Debug::log(LOG, "[hyprgrass] Drag gesture ended: {}", gev.to_string()); switch (gev.type) { case DragGestureType::SWIPE: emulateSwipeEnd(0, false);