From af30cc8df68b29973c8b9eec290f9e6b93463929 Mon Sep 17 00:00:00 2001 From: yrkv Date: Sat, 16 Aug 2025 01:42:08 -0700 Subject: niri-ipc: Add window positions and sizes (#1265) * Add window sizes and positions to the IPC * basic fixes * report window_loc instead of window pos * clean ups * make scrolling indices 1-based * add printing to niri msg windows * don't include render offset in floating tile pos --------- Co-authored-by: Ivan Molodetskikh --- src/protocols/foreign_toplevel.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/protocols') diff --git a/src/protocols/foreign_toplevel.rs b/src/protocols/foreign_toplevel.rs index 068a6b2e..ad2f0890 100644 --- a/src/protocols/foreign_toplevel.rs +++ b/src/protocols/foreign_toplevel.rs @@ -93,7 +93,7 @@ pub fn refresh(state: &mut State) { // Save the focused window for last, this way when the focus changes, we will first deactivate // the previous window and only then activate the newly focused window. let mut focused = None; - state.niri.layout.with_windows(|mapped, output, _| { + state.niri.layout.with_windows(|mapped, output, _, _| { let toplevel = mapped.toplevel(); let wl_surface = toplevel.wl_surface(); with_toplevel_role(toplevel, |role| { -- cgit