forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to src/input/mod.rsClear filter

2026-10-26

input: Refactor screenshot binds to work like othersIvan Molodetskikh · 9aa245c
input: Refactor screenshot binds to work like others

Remove all screenshot hardcoding in the code.

Behavior changes:
- Escape to close now works only when no modifiers are held.
- Other screenshot binds like Ctrl+C or Space used to ignore the state
  of some modifiers like Super, they now need them released.
- Repeat is disabled for screenshot binds, practically holding P won't
  repeatedly cycle the pointer.
- Inside the screenshot UI, the screenshot binds take precedence over
  allowed configured binds (e.g. if you configured Ctrl+C to spawn, or
  binds with MouseLeft).

2026-10-24

2026-10-18

2026-09-23

2026-09-22

2026-09-23

input: support press and release bind actionsJustin Spedding · 5331880
input: support press and release bind actions

There's a small behavior change: pressing a bind that is on a cooldown
and has repeat=true won't start the key repeat (it used to). The reason
is that for Press+Release keys it would make it annoying to track when
the release bind should fire (only after the first repeated key rather
than currently when it's recorded on press).

2026-10-13

feat: use the new virtual keyboard/pointer implementations from smithayPatrick Gaskin · 7da6ae4
feat: use the new virtual keyboard/pointer implementations from smithay

Fixes a bunch of virtual input bugs, most notably keybind handling and
virtual keyboard keymaps.

2026-10-12

2026-10-11

2026-01-26

Add toggle-touchpad actionbarrulus · 4e3661b
Add toggle-touchpad action

Adds a new action to toggle the touchpad on/off at runtime without
editing the config file. Can be bound to a key or invoked via IPC
with `niri msg action toggle-touchpad`.

The toggle state is combined with the config's `off` setting - both
must allow the touchpad for it to be enabled. State resets on restart
and applies to newly hot-plugged touchpads.

2026-10-11

Return and check overview in contents_under()Ivan Molodetskikh · 9d2841b
Return and check overview in contents_under()

Prevents touch and tablet overview grabs when in the screenshot UI or
locked.

2026-05-03

input: Track horizontal scroll bindings separately from vertical scroll bindingsPeter Collingbourne · 27706a4
input: Track horizontal scroll bindings separately from vertical scroll bindings

This allows users to set bindings for tilting the scroll wheel left and
right without disabling vertical scrolling.

Fixes #1584

2026-10-11

2026-09-25

input: Remove bindings_suppress_keys() testIvan Molodetskikh · e3c5225
input: Remove bindings_suppress_keys() test

It's fully covered by the new binds tests.

2026-09-24

Add client-server binds testsIvan Molodetskikh · 3f430ad
Add client-server binds tests

Intended to replace the bindings_suppress_keys() test cases.

TestAction is always present since you seemingly can't gate knuffel enum
variants on cfgs.

2026-09-11

2026-09-15

feat(input): Signal scroll stop events for continuous sourceseriedaberrie · ef3be05
feat(input): Signal scroll stop events for continuous sources

Send a stop event for continuous axis sources, not just finger, when a scroll
value of 0 exists on an axis. Technically we are using a deprecated API that
does not guarantee that continuous sources will actually terminate scroll
sequences with a zero-delta event but it seems to work in practice.
Disallow quit when locked by defaultIvan Molodetskikh · bc4b973
Disallow quit when locked by default

Security-wise, I still consider quit when locked to be within our model,
because a niri crash has the same effect as quitting. Disallowing quit
just makes it harder to imagine this scenario and take precautions.

However, upon further consideration, it's probably bad that a random
person can walk up to your PC and terminate all running applications
(even if they get a locked display manager afterwards). Other desktop
environments seem to hide the Log Out action on the lock screen too.

2026-09-11

Fix: handle axis updates in tablet tip events (#4521)DeSpecTDr · Unverifiedd18b201
Fix: handle axis updates in tablet tip events (#4521)

* Handle axis updates in tablet tip events

* Fix tablet focus and up/down event ordering

* Add comments

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

2026-09-08

Update SmithayPatrick Gaskin · 6a9ed5b
Update Smithay

- ext-foreign-toplevel-list
- input event time
- misc bugfixes and refactors

2026-08-08

Implement Move, Resize and TouchOverviewGrab for tablet toolsIvan Molodetskikh · c189061
Implement Move, Resize and TouchOverviewGrab for tablet tools

At last, you can do all the cool gestures with a tablet!
Merge TouchResizeGrab into ResizeGrabIvan Molodetskikh · 88ea7fa
Merge TouchResizeGrab into ResizeGrab

Follow the MoveGrab pattern.
Bring back old ClickGrab location-preserving behaviorIvan Molodetskikh · c00c6be
Bring back old ClickGrab location-preserving behavior

See comment on the ClickGrab for why I think this is better.

2026-07-19

Update Smithay + bump MSRV to 1.87Ivan Molodetskikh · 0dce5f1
Update Smithay + bump MSRV to 1.87

- rotated output damage fix
- DP-MST missing monitor fix
- GLFW DnD crash fix
- pointer constraint improvement
- VRAM leak fixes
- dmabuf v6
- ClickGrab track last position
- 32-bit fixes

MSRV bump due to new Smithay requirement.

2026-07-17

Implement org.freedesktop.a11y.PointerLocatorIvan Molodetskikh · e83850f
Implement org.freedesktop.a11y.PointerLocator

Lets the screen readers query the pointer position.

2026-06-05

input: add tablet stylus button triggers and binds (#3745)J. Adly · Unverified4b60cbe
input: add tablet stylus button triggers and binds (#3745)

* input: add tablet stylus button triggers and binds

add tablet stylus button3 and fix stylus bind event flow

* add missing allowed during screenshot check

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

2026-05-02

Clamp pointer to output inside screenshot_uiIvan Molodetskikh · f115f2e
Clamp pointer to output inside screenshot_ui

- Removes some duplication
- Allows for better handling by screenshot UI itself depending on the
  case
input: Extract mod_down upwardsIvan Molodetskikh · 2e07282
input: Extract mod_down upwards

View diff with whitespace ignored.
input: Filter allowed_during_screenshot() for non-kb bindsIvan Molodetskikh · cba0454
input: Filter allowed_during_screenshot() for non-kb binds

Forgot about it for those.

2026-04-30

2026-04-20

2026-04-19

Guard against removed outputs in several placesIvan Molodetskikh · d09fa27
Guard against removed outputs in several places

Output::from_resource() succeeds even after the global has been disabled
and removed from niri. Clients operating on these disabled outputs could
cause panics in several places because niri assumed the output existed.

2025-12-25

2026-04-16

Implement cancelling DnD with EscapeIvan Molodetskikh · d4b4407
Implement cancelling DnD with Escape

The last Smithay upgrade includes a fix that lets us do this.

2026-03-07

Upgrade Smithay (virtual_keyboard revert, clipboard destroy cleanup, xdg-shell v7)Ivan Molodetskikh · f4dc10e
Upgrade Smithay (virtual_keyboard revert, clipboard destroy cleanup, xdg-shell v7)

The virtual keyboard is reverted to the same state as it was in v25.08, i.e.
cannot trigger compositor binds. A bigger Smithay refactor is necessary to
properly support them without breaking other things.

Fixes wtype being completely broken.

2026-02-06

Add load-config-file --path to load a different config (#3395)ジムワルド · Unverified549148d
Add load-config-file --path to load a different config (#3395)

* ipc: allow load-config to relocate the path of the config

* doc: add info about alternative configuration paths and relocating

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

* Update docs/wiki/Integrating-niri.md

* Update niri-ipc/src/lib.rs

* Update src/ipc/server.rs

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

2026-01-17

Update Smithay (virtual keyboard, layer-shell geometry, GPU profiling)Ivan Molodetskikh · 74d14be
Update Smithay (virtual keyboard, layer-shell geometry, GPU profiling)

Also includes the necessary code to handle the virtual keyboard
compositor-side. Similar to the virtual pointer, we have an InputDevice
impl that allows reusing the logic from process_input_event().

Co-authored-by: wxt <3264117476@qq.com>

2026-01-15

2026-01-12

Store output name in CastTargetIvan Molodetskikh · 6f92b32
Store output name in CastTarget

Will be useful in the next commit to avoid fetching it every time.