Commits
2026-08-12
2026-08-11
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-08-08
Skip refresh_pointer_contents() during tablet tool useIvan Molodetskikh · d66c6ca
Skip refresh_pointer_contents() during tablet tool use Otherwise it confuses clients with a pointer motion, e.g. when pressing down a tablet on a partially off-screen window (then it scrolls into view and after the animation is done, refresh_pointer_contents() moves the pointer).
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
2026-06-04
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>
2025-12-31
feat: add per output max-bpc config and ipc actionMichael Yang · c525396
feat: add per output max-bpc config and ipc action List current max-bpc values in outputs. fix: remove 16 bpc and change default behaviour feat(ipc): add max_bpc and format to output fix: bpc on output config change docs: add bpc to Outputs feat: use atomic commits for connector properties fix: drm `value_type` breaking change fix: minor changes based on PR review Rename bpc to max-bpc. Add max-bpc output action. refactor: add set_connector_properties Fix niri-config parse test. fix: bail when outside valid max bpc range
2026-04-30
layout: Change active_tile_visual_rectangle() to windowIvan Molodetskikh · 0650e7b
layout: Change active_tile_visual_rectangle() to window New functionality needs window specifically, and existing logic will be fine with window too.
2026-02-07
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-01-23
2026-04-16
Call on_maybe_dnd_ended() in two more placesIvan Molodetskikh · 892470a
Call on_maybe_dnd_ended() in two more places This is not exhaustive and not a good solution. A proper Smithay callback is needed: https://github.com/Smithay/smithay/issues/1996
2026-04-12
2026-03-07
2026-03-14
2026-03-10
Refactor screencopy/screencast to render via the damage tracker, fix cursorless screencopy with damageIvan Molodetskikh · 19866f8
Refactor screencopy/screencast to render via the damage tracker, fix cursorless screencopy with damage The damage tracker stores framebuffer effect cache, so we want anything that renders repeatedly to render through a reused damage tracker. This way, the cache persists and is reused across renders. This will be important for the non-xray background effects.
2026-02-02
2026-04-14
2026-02-18
2026-02-06
2026-01-30
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-10
2026-01-26
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
Revert "Move set_dynamic_cast_target() stub closer to the other ones"Ivan Molodetskikh · 87e2dd0
Revert "Move set_dynamic_cast_target() stub closer to the other ones" This reverts commit dd93c39ed0719c66c7777f9fe726a5d5f5ee4cff. Why did I do this, that function is on a different type
2026-01-12
ipc: Add screencopy cast trackingIvan Molodetskikh · e82830c
ipc: Add screencopy cast tracking Track wlr-screencopy sessions that use with_damage as screencasts. These are used by tools like wl-screenrec for continuous recording.
ipc: Add screencast request and events for PipeWire castsIvan Molodetskikh · 238caaf
ipc: Add screencast request and events for PipeWire casts Allows desktop bars to show when screen recording is active.
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.
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.
Honor pointer visibility in screencastsIvan Molodetskikh · fd2916e
Honor pointer visibility in screencasts Regressed in 05599ce2c4fea61cca590f9ec0c2bef34e777cb9.
2026-01-07
Implement cursor metadata in window screencastabmantis · 05599ce
Implement cursor metadata in window screencast Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2026-01-09
Extract pointer_pos_for_window_cast()Ivan Molodetskikh · 0fb6c57
Extract pointer_pos_for_window_cast() Will be used for window screencasts too.
Add a push version of render()Ivan Molodetskikh · 39d3cd2
Add a push version of render() Will be useful for screencasting.
2026-01-06
2026-01-07
2025-12-25
Refactor rendering to push-based instead of pull-based (#3113)Ivan Molodetskikh · Unverified7f132ec
Refactor rendering to push-based instead of pull-based (#3113) Our current rendering code constructs and returns complex `-> impl Iterator<Item = SomeRenderElement>` types that are collected into a vector at the top level Niri::render(). This causes some problems: - It's hard to write logic around returning iterators. Especially things like conditions, since the returned iterator must have a single type, you can't branch and return different iterators. This will be solved by gen fn but alas it's not here yet. - In many cases, the returned `-> impl Iterator` will borrow from &self leading to complex lifetimes. In certain cases, it is also desirable for it to borrow the &mut NiriRenderer, which causes a lot of issues because it's exclusive (&mut). - Sometimes those issues are too hard to deal with, leading to the escape hatch of allocating and returning a temporary Vec<SomeRenderElement>, like in Scrolling/FloatingSpace::render_elements(). These allocations are unfortunate because they are not really necessary. - It's impossible to use some downstream combinators with this `-> impl Iterator` approach, leading to functions like Smithay's render_elements_from_surface_tree() returning a Vec. This is extra unfortunate because it results in a temporary allocation per Wayland toplevel/popup. - It's hard to properly create profiling spans for the rendering functions since the spans are dropped when the (lazy) iterator is returned and not when all the code actually completes. - The code compiles down to complex state machines in generated iterator types with logic located in Iterator::next(), which makes it annoying to follow in debuggers and profiling tools. This refactor changes the code to push-based iteration: rendering functions receive a push() closure that they call to push their render elements. It solves all of the aforementioned problems: - The logic becomes simpler. Just use conditionals and loops as normal. - No borrowing and lifetimes since we're not returning anything. - All temporary Vecs are removed because the problems they worked around no longer exist. - The new push_elements_from_surface_tree() helper is the same as render_elements_from_surface_tree() but doesn't allocate a temporary Vec since it's not necessary; the push() closure can be passed down. - Profiling spans work normally since the function returns when it ran all of the logic. - The code compiles down to normal functions and calls as expected. Generally, the iterator approach gives these advantages: - You can wrap the returned items in the upstream logic. This is possible in exactly the same way with the push closure. - You can decide to cut the iterator short in the upstream logic. This is not possible with push-based iteration, but we don't actually use it anywhere. I chose the push closure type to be &mut dyn FnMut(SomeRenderElement). It's deliberately not a generic impl FnMut() to avoid duplicating the rendering logic when it's called from several different places. But it's still a normal closure that can capture the outside context. While my original idea for this refactor was to simplify the logic while getting rid of temporary Vecs, it also appears to have brought a consistent 2-3x speedup to the whole render list construction. On an old Eee PC laptop I even observed a 8x speedup. The refactor also results in smaller binary size, presumably due to removing many iterator combinators and state tracking.