#5350·Waybar

sway/workspaces and sway/window use a lot of CPU when any window's title keeps changing

Author: medwattCreated Sep 27, 2026Updated Sep 27, 2026
Labelsbugcustomswayclock

Describe the bug If any window changes its title often, waybar sits at around 15% CPU the whole time on my computer. It happens even when that window is on a workspace I'm not looking at. This happens on apps that put a spinner in the title, which cause a lot of title changes per second. From what I can tell, sway/workspaces and sway/window redraw on every window event, title changes included.

Probably related to #3166, which was closed without a change.

To reproduce

  1. Open any window whose title changes constantly, e.g. while true; do for c in ⠋ ⠙ ⠹ ⠸; do printf '\e]0;%s test\a' $c; sleep 0.1; done; done in a terminal.
  2. Switch to another workspace.
  3. Watch waybar in top.

Expected behaviour Title changes that the module doesn't display shouldn't cause a redraw.

Environment

  • Waybar version: 0.15.0
  • Installed from: Arch package (waybar 0.15.0-3)
  • Compositor: Sway 1.12

Debug output Nothing relevant.