polybar-dwm-module: "module/dwm" stopped with reason: [dwmipcpp] Client with window id XXXXX not found
Describe the issue
“module/dwm” couldn’t process and stopped due to some window id missing. This behaviour happens for android-studio dropdown menus as the menus spawn as “seperate window”. These “seperate window” cannot be close with normal quit execution, it can only be close/remove by moving cursor away and thus causing this issue.
Expected behavior: module/dwm should be able to process the event changes and work as usual.
Actual behavior: module/dwm stopped working due to missing window id.
Was it working before?
- Did you also experience this bug in an earlier version of polybar (yes)?
- If no, what was the last version where this worked correctly?
To Reproduce
Issue might not related to config, but just in case: https://github.com/wongweilok/dotfiles/blob/master/.config/polybar/config_dwm
Step to reproduce:
- Open android-studio.
- Go to the menu and click on File --> New (Or any tab menu that have >= 2 level option), then move cursor away as figure below:

- Click on the editor or anywhere except the dropdown menus.
- Result:

Polybar Log
Polybar outputs when the issue occur
notice: Parsing config file: /home/weilok/.config/polybar/config
notice: pulseaudio: using default sink alsa_output.pci-0000_00_09.2.analog-stereo
error: Disabling module "battery" (reason: No suitable way to get current capacity value)
notice: Loaded font "mono:pixelsize=9" (name=Inconsolata for Powerline, offset=1, file=/usr/share/fonts/Inconsolata for Powerline.otf)
notice: Loaded font "Inconsolata for Powerline:size=16" (name=Inconsolata for Powerline, offset=3, file=/usr/share/fonts/Inconsolata for Powerline.otf)
notice: Loaded font "Noto Color Emoji:scale=10:style=Regular" (name=Noto Color Emoji, offset=2, file=/usr/share/fonts/noto/NotoColorEmoji.ttf)
notice: Loaded font "Font Awesome 5 Free:style=Regular:pixelsize=8" (name=Font Awesome 5 Free, offset=1, file=/usr/share/fonts/TTF/fa-regular-400.ttf)
notice: Loaded font "Font Awesome 5 Free:style=Solid:pixelsize=8" (name=Font Awesome 5 Free, offset=1, file=/usr/share/fonts/TTF/fa-solid-900.ttf)
notice: Loaded font "Font Awesome 5 Brands:pixelsize=8" (name=Font Awesome 5 Brands, offset=1, file=/usr/share/fonts/TTF/fa-brands-400.ttf)
notice: Loaded font "Noto Sans CJK JP:size=8" (name=Noto Sans CJK JP, offset=1, file=/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc)
notice: Loaded font "Noto Sans CJK KR:size=8" (name=Noto Sans CJK KR, offset=1, file=/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc)
notice: Loaded font "Noto Sans CJK SC:size=8" (name=Noto Sans CJK SC, offset=1, file=/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc)
notice: Loaded font "Noto Sans CJK TC:size=8" (name=Noto Sans CJK TC, offset=1, file=/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc)
error: module/dwm: [dwmipcpp] Client with window id 18875311 not found
notice: Stopping 'module/dwm'...
*Note: The window id is vary.
Environment:
- WM: dwm
- Distro: Arch Linux
- Output of
polybar -vvv:
polybar 3.5.2-95-gbb94e184
Features: +alsa +curl +dwm +i3 +mpd +network(libnl) +pulseaudio +xkeyboard
X extensions: +randr (+monitors) +composite +xkb +xrm +xcursor
Build type: Release
Compiler: /usr/bin/c++
Compiler flags: -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -Wextra -Wpedantic -O3 -DNDEBUG
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 15 (4 by maintainers)
There’s an easy workaround for this: In your polybar config delete “label-title” (under [module/dwm]), so the module doesn’t read the window title at all, then use [module/title] as a replacement.