Skip to content

Commit 667ff8b

Browse files
committed
river: handle correctly max_tag > 32
1 parent dbcaa19 commit 667ff8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wm_info_provider/river.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl WmInfoProvider for RiverInfoProvider {
9292
let Some(status) = self.output_statuses.iter().find(|s| s.output == output.wl) else {
9393
return Vec::new();
9494
};
95-
(1..=self.max_tag)
95+
(1..=u8::min(self.max_tag, 32))
9696
.map(|tag| Tag {
9797
id: tag as u32,
9898
name: tag.to_string(),

0 commit comments

Comments
 (0)