Skip to content

Commit

Permalink
Removed dbg! calls
Browse files Browse the repository at this point in the history
  • Loading branch information
rustn00b committed Jan 13, 2025
1 parent b1146e3 commit 5677748
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ impl State {
.active_workspace_mut()
.and_then(|ws| ws.active_window_mut())
{
dbg!("Exit sequence", m.id());
m.update_focus_timestamp(now);
}
}
Expand All @@ -407,7 +406,6 @@ impl State {
let window = this.niri.layout.windows().find(|(_, m)| m.id() == id);
let window = window.map(|(_, m)| m.window.clone());
if let Some(window) = window {
dbg!("Cancel MRU");
this.focus_window(&window);
return FilterResult::Intercept(None);
}
Expand Down
9 changes: 2 additions & 7 deletions src/niri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,6 @@ impl State {
if let Some(window) = wmru.mru_previous(&self.niri) {
self.focus_window(&window);
}
dbg!(&wmru);
self.niri.window_mru.replace(wmru);
}

Expand All @@ -785,7 +784,6 @@ impl State {
if let Some(window) = wmru.mru_next(&self.niri) {
self.focus_window(&window);
}
dbg!(&wmru);
self.niri.window_mru.replace(wmru);
}

Expand Down Expand Up @@ -1060,7 +1058,6 @@ impl State {
.flat_map(|ws| ws.windows_mut())
.find(|w| w.id() == focus_id)
{
dbg!("locked focus for", &focus_id);
window.update_focus_timestamp(stamp);
}
state.niri.focus_lockin_token.take();
Expand Down Expand Up @@ -5243,17 +5240,15 @@ impl WindowMRU {
}
});

dbg!(&bh);

dbg!(WindowMRU {
WindowMRU {
ids: bh
.into_sorted_vec()
.into_iter()
.map(|(_, id)| id)
.rev()
.collect(),
current: 0,
})
}
}

fn get<F>(&mut self, niri: &Niri, f: F) -> Option<Window>
Expand Down

0 comments on commit 5677748

Please sign in to comment.