Skip to content

Commit

Permalink
dev: add some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename committed Jan 12, 2024
1 parent 960229c commit 42e4028
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/GestureManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 42e4028

Please sign in to comment.