gestures: add unset

ref https://github.com/hyprwm/Hyprland/pull/11490
This commit is contained in:
Vaxry 2025-09-08 20:24:45 +01:00
parent b619f39555
commit 1e3a06560f
No known key found for this signature in database
GPG key ID: 665806380871D640
3 changed files with 15 additions and 0 deletions

View file

@ -3247,6 +3247,8 @@ std::optional<std::string> CConfigManager::handleGesture(const std::string& comm
result = g_pTrackpadGestures->addGesture(makeUnique<CFloatTrackpadGesture>(std::string{data[startDataIdx + 1]}), fingerCount, direction, modMask, deltaScale);
else if (data[startDataIdx] == "fullscreen")
result = g_pTrackpadGestures->addGesture(makeUnique<CFullscreenTrackpadGesture>(std::string{data[startDataIdx + 1]}), fingerCount, direction, modMask, deltaScale);
else if (data[startDataIdx] == "unset")
result = g_pTrackpadGestures->removeGesture(fingerCount, direction, modMask, deltaScale);
else
return std::format("Invalid gesture: {}", data[startDataIdx]);