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

Exclusive XInput event handling #1821

Merged
merged 8 commits into from
Apr 17, 2024
Merged

Exclusive XInput event handling #1821

merged 8 commits into from
Apr 17, 2024

Commits on Apr 12, 2024

  1. Add XInput event handling

    Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
    Caellian committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    03e0f07 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2024

  1. Improve ergonomics of the pointer API

    WIP commit - I broke something and events no longer get reported.
    
    On a flip side, valuators can be referenced by either a name string or number
    id now, use of which is easy to optimize by the compiler.
    
    Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
    Caellian committed Apr 14, 2024
    Configuration menu
    Copy the full SHA
    ee4eb0f View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Simplify use of XInput related classes

    Added support for changing valuator properties through xorg.conf.
    
    Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
    Caellian committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    c1f96d7 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Fix cursor_over_conky and override atoms

    WIP commit - relative calculation is still off.
    
    Calculate relative valuators only once per event and cache results.
    
    Switch to finding top-level window before root. This made me reuse
    virtual root code so I refactored it and made it apply automatically in
    place of X11 macros. This means that all code in x11.cc will use virtual
    roots if they exist.
    
    Fixed query_x11_windows fallback to exclude windows without WM hints. I
    believe this is the correct way to ignore windows specific to some
    special WM functionality.
    
    Removed InputEvent and xev_as_input_event as they were being used in
    only a single place.
    
    Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
    Caellian committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    db70a1b View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2024

  1. Fix valuator_info not being updated

    Wasn't updated due to implicit reference copy. Now relative seems to
    work.
    
    Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
    Caellian committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    a8bef65 View commit details
    Browse the repository at this point in the history
  2. Fill cache at startup

    First reported event was being reported with bad computed relative value
    otherwise.
    
    Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
    Caellian committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    7c74779 View commit details
    Browse the repository at this point in the history
  3. Fix crash when device disconnected

    Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
    Caellian committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    feab28a View commit details
    Browse the repository at this point in the history
  4. Cleanup

    Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
    Caellian committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    d5af5ac View commit details
    Browse the repository at this point in the history