Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring invalid keysym does not show error #392

Closed
matthijskooijman opened this issue Nov 23, 2020 · 1 comment
Closed

Configuring invalid keysym does not show error #392

matthijskooijman opened this issue Nov 23, 2020 · 1 comment
Assignees
Milestone

Comments

@matthijskooijman
Copy link
Contributor

Describe the bug

Using an invalid keysym is silently ignored and sends a NoSymbol (keysym 0) instead of showing an error message. For example, using the following gesture:

    <gesture type="PINCH" fingers="3" direction="OUT">
      <action type="SEND_KEYS">
        <keys>SomeRandomValue</keys>
      </action>
    </gesture>

Expected behaviour

I would expect an error to be shown on stdout/stderr, preferably on toucheg startup, or otherwise when the action is triggered.

Actual behaviour

Touchegg sends a NoSymbol (keysym 0) instead of showing an error message, according to xev:

KeyPress event, serial 40, synthetic NO, window 0x5800001,
    root 0x124, subw 0x0, time 657301371, (156,80), root:(157,145),
    state 0x0, keycode 204 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 40, synthetic NO, window 0x5800001,
    root 0x124, subw 0x0, time 657301372, (156,80), root:(157,145),
    state 0x0, keycode 204 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Your environment

  • Version of Touchégg: Touchégg v2.0.3.
  • Operating System: Ubuntu
  • Desktop Environment: Gnome
@JoseExposito
Copy link
Owner

Thanks a lot for your bug report @matthijskooijman, I'll look into this ASAP

@JoseExposito JoseExposito added this to the 2.0.5 milestone Jan 4, 2021
@JoseExposito JoseExposito self-assigned this Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants