Skip to content

Commit

Permalink
river: handle correctly max_tag > 32
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxVerevkin committed Sep 11, 2024
1 parent dbcaa19 commit 667ff8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wm_info_provider/river.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl WmInfoProvider for RiverInfoProvider {
let Some(status) = self.output_statuses.iter().find(|s| s.output == output.wl) else {
return Vec::new();
};
(1..=self.max_tag)
(1..=u8::min(self.max_tag, 32))
.map(|tag| Tag {
id: tag as u32,
name: tag.to_string(),
Expand Down

0 comments on commit 667ff8b

Please sign in to comment.