Commits
2026-10-18
input: Update keyboard LEDs on config reloadsAeysol · 12de51d
input: Update keyboard LEDs on config reloads On a keymap reset, niri restores Num Lock through `set_modifier_state()` but does not restore the keyboard LEDs. On config reloads, an active Num Lock modifier is not visible to the user and pressing Num Lock again to supposedly turn it on will turn it off instead.
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-08
Update SmithayPatrick Gaskin · eac4e8e
Update Smithay - send keyboard modifiers after key events - winit pinch and hold gestures - panic fixes on negative toplevel size hints and regions - fix for second input_method when one already exists - don't try to become DRM master on a render node
2026-09-12
feat: implement ext-image-copy-capture for outputs and cursorsPatrick Gaskin · 849c576
feat: implement ext-image-copy-capture for outputs and cursors No toplevel capture support yet since that'll require more refactoring.
2026-09-08
Update SmithayPatrick Gaskin · 6a9ed5b
Update Smithay - ext-foreign-toplevel-list - input event time - misc bugfixes and refactors
2026-08-18
feat(config): add on-xdg-activate window ruleArtem Timofeev · e9b215f
feat(config): add on-xdg-activate window rule Add ignore, set-urgent, and focus actions. Keep unset behavior dependent on activation token validity while explicit focus always focuses.
2026-08-14
2026-08-11
2026-08-08
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-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.
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-04-14
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-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-13
Refactor wlr-screencopy state cleanupIvan Molodetskikh · 9c79108
Refactor wlr-screencopy state cleanup Before we cleaned up when binding a new manager, meaning that after a screencopy client exited, the queue kept existing until a new one is bound. We'll need precise tracking for the screencast IPC, so this commit refactors to do just that: clean up the queue immediately when all referring objects no longer exist. This commit also fixes an issue where destroyed frames (e.g. from a killed client) didn't clean the corresponding screencopy objects, leading them to exist forever.
2025-12-18
2025-09-02
2025-09-26
2025-09-19
Fix DnD icon offset from surface cursorIvan Molodetskikh · 86edeb3
Fix DnD icon offset from surface cursor The offset is already relative to the hotspot, no need to offset twice.
2025-09-05
2025-07-15
2025-06-14
2025-06-04
Round lock surface size, rather than floorIvan Molodetskikh · 9858599
Round lock surface size, rather than floor There's no problem with 1 px overflow here, while 1 px underflow shows up as a border.
2025-03-21
add window urgency through xdg-activation-v1Duncan Overbruck · 86f57c2
add window urgency through xdg-activation-v1 urgency is done through activation requests without a serial from a previous interaction. https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/150
2025-04-27
Fix pointer hiding so that it is no longer annoying (#1426)bogdanov · Unverified758cca5
Fix pointer hiding so that it is no longer annoying (#1426) * replace `pointer_hidden` with `pointer_visiblity` * disable hidden pointer after content underneath has changed * fixes --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2025-03-29
2025-02-26
2025-02-24
Also check pointer for activation token validityIvan Molodetskikh · 5b6b553
Also check pointer for activation token validity This actually doesn't matter in most cases currently, because it more or less checks for *anything* to have a keyboard focus, so if you have some focused window while clicking on a mako notification, that already qualifies. Signed-off-by: Ivan Molodetskikh <yalterz@gmail.com>
2025-02-17
2025-02-15
Implement scrolling the view during DnDIvan Molodetskikh · ca1500a
Implement scrolling the view during DnD DnD is external to the layout, so we just inform it when one is ongoing.
2025-02-14
2025-02-05
Fix find_window_and_output() returning None with no outputsIvan Molodetskikh · 734e3a6
Fix find_window_and_output() returning None with no outputs As far as I can tell, this would mess up a ton of the logic. Not sure how anything worked with no outputs before?
2025-01-27
2025-01-22
2025-01-23
2025-01-18
implement `keyboard-shortcuts-inhibit` and `wlr-virtual-pointer` (#630)sodiboo · Unverified0584dd2
implement `keyboard-shortcuts-inhibit` and `wlr-virtual-pointer` (#630) * stub keyboard-shortcuts-inhibit and virtual-pointer impls * implement keyboard-shortcuts-inhibit * implement virtual-pointer * deal with supressed key release edge-case; add allow-inhibiting property * add toggle-keyboard-shortcuts-inhibit bind * add InputBackend extensions; use Device::output() for absolute pos events * add a `State` parameter to the backend exts and better document future intent * Add some tests for is_inhibiting_shortcuts --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2025-01-10
2025-01-03
2024-12-20
2024-12-11
Activate monitors on session unlock (#858)Salman Farooq · Unverifiedbb3a05b
Activate monitors on session unlock (#858) So that e.g. unlocking by touching the fingerprint reader powers on the monitors. --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com> Co-authored-by: Salman Farooq <46742354+SalmanFarooqShiekh@users.noreply.github.com>
2024-11-16
Activate newly mapped windows with a valid activation tokenChristian Meissl · 305fc3b
Activate newly mapped windows with a valid activation token most of the time the activation token is passed while the window is still unmapped. in this case store the intend to activate the window for later retrieval on map.
2024-11-22
Focus target window/output on DnDIvan Molodetskikh · c239937
Focus target window/output on DnD In sway, focus-follows-mouse keeps working during DnD, but not in niri. So it can be surprising when you DnD something into another app, but it doesn't get automatically focused. This commit fixes that. Even if the DnD is not validated, or if there's no target surface (e.g. dropped on the niri background), focus the target output, since that's how Firefox's drag-tab-into-new-window works for example.
2024-11-12
2024-11-03
xdg: cleanup activation tokensChristian Meissl · 354c365
xdg: cleanup activation tokens valid tokens will stay around until explicitly cleaned-up. remove the token after it has been successfully used or we consider it timed out to prevent leaking the memory used by the activation tokens
Correct pointer constraint activation logicIvan Molodetskikh · 9193245
Correct pointer constraint activation logic Internally it uses the pointer focus, so make sure we have up-to-date focus before setting it.