[GH-ISSUE #1113] The focused module goes blank on spawning a new window #5970

Open
opened 2026-05-23 01:54:16 +01:00 by JakeStanger · 0 comments
Owner

Originally created by @randoragon on GitHub (Aug 10, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1113

Describe the bug
When I press a keybinding to open a terminal for instance, the focused module goes blank. It updates its contents only when I move the focus back and forth.

To reproduce
Steps to reproduce the behavior:

  1. Add module focused
  2. Open a new window
  3. Observe that the focused module goes blank

Expected behavior
The focused module should show the currently focused window, i.e. the new one.

System information:

  • Distro: NixOS 25.11
  • Compositor: Niri 25.05.1
  • Ironbar version: 0.16.1

Configuration

Config
let {
	$focused = {
		type = "focused"
		icon_size = 16
	}
}
	in {
	name = "mybar"
	layer = "top"
	position = "top"
	anchor_to_edges = true
	height = 20

	start = [ ]
	center = [ $focused ]
	end = [ ]
}
Styles
* {
	font-family: Liberation Sans;
	font-size: 13px;
	border: none;
	margin: 0px;
	padding: 0px;
}

Additional context

Screenshots

  1. Before Image
  2. After Image
Originally created by @randoragon on GitHub (Aug 10, 2025). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1113 **Describe the bug** When I press a keybinding to open a terminal for instance, the focused module goes blank. It updates its contents only when I move the focus back and forth. **To reproduce** Steps to reproduce the behavior: 1. Add module `focused` 2. Open a new window 3. Observe that the focused module goes blank **Expected behavior** The focused module should show the currently focused window, i.e. the new one. **System information:** - Distro: NixOS 25.11 - Compositor: Niri 25.05.1 - Ironbar version: 0.16.1 **Configuration** <!-- Share your bar configuration and stylesheet as applicable: --> <details><summary>Config</summary> ```corn let { $focused = { type = "focused" icon_size = 16 } } in { name = "mybar" layer = "top" position = "top" anchor_to_edges = true height = 20 start = [ ] center = [ $focused ] end = [ ] } ``` </details> <details><summary>Styles</summary> ```css * { font-family: Liberation Sans; font-size: 13px; border: none; margin: 0px; padding: 0px; } ``` </details> **Additional context** <!-- Add any other context about the problem here. --> **Screenshots** 1. Before <img width="1366" height="768" alt="Image" src="https://github.com/user-attachments/assets/1821c297-f8d6-4ee1-ad6d-1be3a707037a" /> 2. After <img width="1366" height="768" alt="Image" src="https://github.com/user-attachments/assets/004c1672-1d99-41c6-a008-9f4971888b43" />
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#5970
No description provided.