forge
Explore
Log in

Don't you dare go Hollow

9a6f31012d031a7fccaf607b49080ddce44f0935Jakob HellermannParent: 4294948
src/ipc/client.rsmodified+1 -1
@@ -220,7 +220,7 @@ pub fn handle_msg(mut msg: Msg, json: bool) -> anyhow::Result<()> {
220 220
221 let print = |surface: &niri_ipc::LayerSurface| {221 let print = |surface: &niri_ipc::LayerSurface| {
222 println!(" Surface:");222 println!(" Surface:");
223- println!(" Namespace: \"{}\"", &surface.namespace);223+ println!(" Namespace: \"{}\"", surface.namespace);
224 224
225 let interactivity = match surface.keyboard_interactivity {225 let interactivity = match surface.keyboard_interactivity {
226 niri_ipc::LayerSurfaceKeyboardInteractivity::None => "none",226 niri_ipc::LayerSurfaceKeyboardInteractivity::None => "none",
src/protocols/ext_workspace.rsmodified+1 -1
@@ -200,7 +200,7 @@ fn refresh_workspace_group(protocol_state: &mut ExtWorkspaceManagerState, output
200 // Send workspace_enter for all existing workspaces on this output.200 // Send workspace_enter for all existing workspaces on this output.
201 for group in &data.instances {201 for group in &data.instances {
202 let manager: &ExtWorkspaceManagerV1 = group.data().unwrap();202 let manager: &ExtWorkspaceManagerV1 = group.data().unwrap();
203- for (_, ws) in protocol_state.workspaces.iter() {203+ for ws in protocol_state.workspaces.values() {
204 if ws.output.as_ref() != Some(output) {204 if ws.output.as_ref() != Some(output) {
205 continue;205 continue;
206 }206 }
src/protocols/output_management.rsmodified+1 -1
@@ -250,7 +250,7 @@ impl OutputManagementManagerState {
250 notify_new_head(self, output, conf);250 notify_new_head(self, output, conf);
251 }251 }
252 }252 }
253- for (old, _) in self.current_state.iter() {253+ for old in self.current_state.keys() {
254 if !new_state.contains_key(old) {254 if !new_state.contains_key(old) {
255 changed = true;255 changed = true;
256 notify_removed_head(&mut self.clients, old);256 notify_removed_head(&mut self.clients, old);