aboutsummaryrefslogtreecommitdiff
path: root/src/layout/scrolling.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-05-10 22:34:53 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-05-10 22:42:45 +0300
commit58166914607025ae9fb20d868138238bebd4c6bc (patch)
tree9c1b583ecfd03b98a74288749b682166ceb2c16e /src/layout/scrolling.rs
parent4b5e9e6cb08d269506cad8273ca7e9c93378034e (diff)
downloadniri-58166914607025ae9fb20d868138238bebd4c6bc.tar.gz
niri-58166914607025ae9fb20d868138238bebd4c6bc.tar.bz2
niri-58166914607025ae9fb20d868138238bebd4c6bc.zip
Add urgent color support to tab indicators
Diffstat (limited to 'src/layout/scrolling.rs')
-rw-r--r--src/layout/scrolling.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs
index 5f746915..bd68a65a 100644
--- a/src/layout/scrolling.rs
+++ b/src/layout/scrolling.rs
@@ -3820,8 +3820,9 @@ impl<W: LayoutElement> Column<W> {
.enumerate()
.map(|(tile_idx, (tile, tile_off))| {
let is_active = tile_idx == active_idx;
+ let is_urgent = tile.window().is_urgent();
let tile_pos = tile_off + tile.render_offset();
- TabInfo::from_tile(tile, tile_pos, is_active, &config)
+ TabInfo::from_tile(tile, tile_pos, is_active, is_urgent, &config)
});
// Hide the tab indicator in fullscreen. If you have it configured to overlap the window,