horriblename / hyprgrass

hyprland plugin for touch gestures
BSD 3-Clause "New" or "Revised" License
259 stars 11 forks source link

Is it possible to move window by one finger after multifinger long press triggerd? #156

Open L-Trump opened 1 week ago

L-Trump commented 1 week ago

Longpress to move/resize window is really a fancy enhancement provided by hyprgrass. But in recent use I found that it's easy to break a touch by moving multiple fingers at the same time. Is it possible to longpress by multi-fingers and then only use one finger to perform the bindm operation?

horriblename commented 6 days ago

try #157

I'll test and merge next month after my vacation

L-Trump commented 5 days ago

Thanks for your work! Two tests failed during building:

  ==== stdout:
drag started: longpress:3
cancel touch on windows
drag update
drag update
gesture cancelled
drag update
===============================================================================
../src/gestures/test/test.cpp:234:
TEST CASE:  Long press and drag: full drag

../src/gestures/test/test.cpp:93: ERROR: CHECK( gm.dragEnded ) is NOT correct!
  values: CHECK( false )

  ==== stdout:
gesture cancelled
  ==== stdout:
gesture cancelled
  ==== stdout:
drag started: edge:l:r
gesture triggered: edge:l:r
  ==== stdout:
drag started: edge:l:r
===============================================================================
../src/gestures/test/test.cpp:297:
TEST CASE:  Edge Swipe: Timeout during swiping phase

../src/gestures/test/test.cpp:97: ERROR: CHECK( gm.cancelled ) is NOT correct!
  values: CHECK( false )

Allowed to fail so marking it as not failed
  ==== stdout:
  ==== stdout:
drag started: edge:l:r
cancel touch on windows
drag update
  ==== stdout:
gesture cancelled
  ==== stdout:
gesture cancelled
  ==== stdout:
drag started: edge:l:r
gesture triggered: edge:l:r
  ==== stdout:
drag started: edge:l:r
===============================================================================
horriblename commented 5 days ago

fixd

L-Trump commented 5 days ago

Successfully built. But the move/resize actions don't finish after lifting all fingers up.

https://github.com/user-attachments/assets/eadc356c-bdcd-482a-b3b3-1130e98cf3e2

horriblename commented 4 days ago

fuck I thought it would be a 5 line change

I'll pick this back up at a later time