You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I'm trying to add 2 actions for the same gesture, one with a keypress and one without, they both activate with the keypress. This only happens with the window actions when they are set to be the ones without the keypress. In my config below, they are in the 4-finger swipe up and down gestures
To Reproduce
Steps to reproduce the behavior:
Set an action on keypress and another window action without the keypress
Try them out
Expected behavior
When clicking the key (ctrl), the action that's not on keypress shouldn't trigger. Only the action inside the keypress should trigger
Versions
I, [2023-03-14T19:22:25.581862 #38577] INFO -- : reload config: /home/tofy/.config/fusuma/config.ymlI, [2023-03-14T19:22:25.618671 #38577] INFO -- : ---------------------------------------------I, [2023-03-14T19:22:25.619035 #38577] INFO -- : Fusuma: 2.5.1I, [2023-03-14T19:22:25.619828 #38577] INFO -- : libinput: 1.20.0I, [2023-03-14T19:22:25.619861 #38577] INFO -- : ruby 3.0.2p107I, [2023-03-14T19:22:25.620510 #38577] INFO -- : OS: Linux 5.19.0-35-generic #36~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 17 15:17:25 UTC 2I, [2023-03-14T19:22:25.621035 #38577] INFO -- : Distribution: elementary OS Horus \n \lI, [2023-03-14T19:22:25.621489 #38577] INFO -- : Desktop session: pantheon x11I, [2023-03-14T19:22:25.621503 #38577] INFO -- : ---------------------------------------------I, [2023-03-14T19:22:25.621513 #38577] INFO -- : Enabled Plugins: I, [2023-03-14T19:22:25.621584 #38577] INFO -- : Fusuma::Plugin::Buffers::GestureBufferI, [2023-03-14T19:22:25.621594 #38577] INFO -- : Fusuma::Plugin::Buffers::KeypressBufferI, [2023-03-14T19:22:25.621602 #38577] INFO -- : Fusuma::Plugin::Buffers::TapBufferI, [2023-03-14T19:22:25.621609 #38577] INFO -- : Fusuma::Plugin::Buffers::TimerBufferI, [2023-03-14T19:22:25.621616 #38577] INFO -- : Fusuma::Plugin::Detectors::HoldDetectorI, [2023-03-14T19:22:25.621623 #38577] INFO -- : Fusuma::Plugin::Detectors::KeypressDetectorI, [2023-03-14T19:22:25.621630 #38577] INFO -- : Fusuma::Plugin::Detectors::PinchDetectorI, [2023-03-14T19:22:25.621638 #38577] INFO -- : Fusuma::Plugin::Detectors::RotateDetectorI, [2023-03-14T19:22:25.621645 #38577] INFO -- : Fusuma::Plugin::Detectors::SwipeDetectorI, [2023-03-14T19:22:25.621652 #38577] INFO -- : Fusuma::Plugin::Detectors::TapDetectorI, [2023-03-14T19:22:25.621660 #38577] INFO -- : Fusuma::Plugin::Events::Records::ContextRecordI, [2023-03-14T19:22:25.621667 #38577] INFO -- : Fusuma::Plugin::Events::Records::GestureRecordI, [2023-03-14T19:22:25.621674 #38577] INFO -- : Fusuma::Plugin::Events::Records::IndexRecordI, [2023-03-14T19:22:25.621682 #38577] INFO -- : Fusuma::Plugin::Events::Records::KeypressRecordI, [2023-03-14T19:22:25.621689 #38577] INFO -- : Fusuma::Plugin::Events::Records::TextRecordI, [2023-03-14T19:22:25.621696 #38577] INFO -- : Fusuma::Plugin::Executors::CommandExecutorI, [2023-03-14T19:22:25.621704 #38577] INFO -- : Fusuma::Plugin::Executors::SendkeyExecutorI, [2023-03-14T19:22:25.621712 #38577] INFO -- : Fusuma::Plugin::Executors::WmctrlExecutorI, [2023-03-14T19:22:25.621719 #38577] INFO -- : Fusuma::Plugin::Filters::KeypressFilterI, [2023-03-14T19:22:25.621726 #38577] INFO -- : Fusuma::Plugin::Filters::LibinputDeviceFilterI, [2023-03-14T19:22:25.621733 #38577] INFO -- : Fusuma::Plugin::Inputs::LibinputCommandInputI, [2023-03-14T19:22:25.621740 #38577] INFO -- : Fusuma::Plugin::Inputs::TimerInputI, [2023-03-14T19:22:25.621747 #38577] INFO -- : Fusuma::Plugin::Parsers::KeypressParserI, [2023-03-14T19:22:25.621755 #38577] INFO -- : Fusuma::Plugin::Parsers::LibinputGestureParserI, [2023-03-14T19:22:25.621762 #38577] INFO -- : Fusuma::Plugin::Parsers::TapParserI, [2023-03-14T19:22:25.621769 #38577] INFO -- : ---------------------------------------------
@tofylion Have you assigned other keys(e,g CAPSLOCK) to LEFTCTRL?
I use an external tool called xremap to change keybind from CAPSLOCK to LEFTCTRL, and in my environment, the bug you reported seems to be reproduced.
Actually, when Fusuma executes sendkey, it intentionally releases the modifier keys other than the key specified by keypress before executing sendkey. This includes CAPSLOCK, and if Fusuma releases CAPSLOCK, the remapped LEFTCTRL will also be released, which may cause this kind of bug.
Below is a list of modifier keys that are automatically released just before sendkey.
What I'm thinking of now is to make the automatic release of modifier keys an option(clearmodifier: true).
This may not work properly in some cases, but I think it's better than being released all modifier keys automatically. I think it's best to minimize the surprise.
Describe the bug
When I'm trying to add 2 actions for the same gesture, one with a keypress and one without, they both activate with the keypress. This only happens with the window actions when they are set to be the ones without the keypress. In my config below, they are in the 4-finger swipe up and down gestures
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When clicking the key (ctrl), the action that's not on keypress shouldn't trigger. Only the action inside the keypress should trigger
Versions
Configuration
The text was updated successfully, but these errors were encountered: