Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Segfault on Python 3.14 caused by missing `argtypes` on variadic `ei_seat_bind_capabilities` ctypes call

## [0.7.0] - 2026-03-29

### Added
Expand Down
3 changes: 2 additions & 1 deletion src/kwin_mcp/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ def _load_libei() -> ctypes.CDLL:
lib.ei_seat_has_capability.argtypes = [ctypes.c_void_p, ctypes.c_uint]
lib.ei_seat_ref.restype = ctypes.c_void_p
lib.ei_seat_ref.argtypes = [ctypes.c_void_p]
# ei_seat_bind_capabilities is variadic, argtypes not set
lib.ei_seat_bind_capabilities.restype = None
lib.ei_seat_bind_capabilities.argtypes = [ctypes.c_void_p] # variadic: fixed param only

# Device functions
lib.ei_event_get_device.restype = ctypes.c_void_p
Expand Down